[cmake-developers] Improving Vim support in CMake

Alex Merry alex.merry at kde.org
Sat Jan 24 10:29:51 EST 2015


On Wednesday 21 January 2015 16:17:35 Ben Boeckel wrote:
> List of improvements to the syntax file:
> 
>   - drop support for < 7.0 (which is 7.5 years old now);
>   - add support for Lua-style comments;
>   - update the list of system variables;
>   - update the list of operators;
>   - make only commands case-insensitive;
>   - update the list of built-in commands (and deprecated ones);
>   - highlight user-defined function and macro calls; and
>   - tweak colors a bit.

Much needed, especially updating the list of commands and operators, thanks!

However, I'm missing having variables highlighted in a different colour, 
especially when they appear in strings. Also, do you know if it's possible to 
make command and operator highlighting context-sensitive? For example, in 
add_command(COMMAND foo), COMMAND is highlighted because it is in the list of 
operators, and I've got a command that takes a LINK_LIBRARIES keyword 
argument, which is highlighted as a deprecated command.

Alex


More information about the cmake-developers mailing list