2014-02-23 16:07:44 +00:00
|
|
|
## Syntax highlighting for CMake files.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2010-04-14 02:38:56 +00:00
|
|
|
syntax "cmake" "(CMakeLists\.txt|\.cmake)$"
|
2016-05-25 20:13:50 +00:00
|
|
|
comment "#"
|
2010-04-14 02:38:56 +00:00
|
|
|
|
|
|
|
icolor green "^[[:space:]]*[A-Z0-9_]+"
|
|
|
|
icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>"
|
|
|
|
|
|
|
|
icolor brightgreen "^[[:space:]]*\<((else|end)?if|else|(end)?while|(end)?foreach|break)\>"
|
|
|
|
color brightgreen "\<(NOT|COMMAND|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)\>[[:space:]]"
|
|
|
|
color brightgreen "[[:space:]]\<(OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))\>[[:space:]]"
|
|
|
|
|
|
|
|
icolor brightred "^[[:space:]]*\<((end)?(function|macro)|return)"
|
|
|
|
|
|
|
|
icolor cyan start="\$(\{|ENV\{)" end="\}"
|
|
|
|
color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>"
|
|
|
|
|
|
|
|
icolor brightblue "^([[:space:]]*)?#.*"
|
|
|
|
icolor brightblue "[[:space:]]#.*"
|
|
|
|
color ,green "[[:space:]]+$"
|