Done for version 1.5 of the plugin.
I am quite pleased how this turned out so far, it will be possible to add any arbitrary number of new filetype handlers by editing a file in your user config directory.
For example this will be the bare minimum to add support for C
- Code: Select all
<launch version="1">
<handler name="C" id="ID_LANG_C"></handler>
</launch>
It also offers options to add default handlers and optional highlighting of error output in the buffer. So an extended version would look like this.
- Code: Select all
<launch version="1">
<handler name="C" id="ID_LANG_C">
<commandlist default="make">
<command name="make" execute="make"/>
<command name="g++" execute="g++ -c"/>
</commandlist>
<!-- If your compiler output errors like
"line: 22 file: myfile.c"
-->
<error pattern="error\: ln ([0-9]+) file\: (.*)"/>
</handler>
</launch>
Docs and detailed specs will be available on the documentation page by the next release.
Cody