2014-02-23 20:07:44 +04:00
|
|
|
## Syntax highlighting for CMake files.
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2018-02-07 13:25:46 +03:00
|
|
|
syntax cmake "(CMakeLists\.txt|\.cmake)$"
|
2016-05-25 23:13:50 +03:00
|
|
|
comment "#"
|
2010-04-14 06:38:56 +04:00
|
|
|
|
2019-08-17 18:01:19 +03:00
|
|
|
color green "^[[:space:]]*[0-9A-Za-z_]+"
|
2010-04-14 06:38:56 +04:00
|
|
|
icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>"
|
|
|
|
|
2017-12-30 19:32:15 +03:00
|
|
|
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:]]"
|
2010-04-14 06:38:56 +04:00
|
|
|
|
2017-12-30 19:32:15 +03:00
|
|
|
icolor brightred "^[[:space:]]*((end)?(function|macro)|return)"
|
2010-04-14 06:38:56 +04:00
|
|
|
|
2019-08-17 18:01:19 +03:00
|
|
|
icolor cyan start="\$(ENV)?\{" end="\}"
|
2010-04-14 06:38:56 +04:00
|
|
|
color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>"
|
|
|
|
|
2018-11-03 23:20:06 +03:00
|
|
|
color brightblue "(^|[[:space:]])#.*"
|
2010-04-14 06:38:56 +04:00
|
|
|
color ,green "[[:space:]]+$"
|