Benno Schulenberg | c4b344f | 2014-02-23 16:07:44 +0000 | [diff] [blame] | 1 | ## Syntax highlighting for CMake files. |
Benno Schulenberg | fe9da94 | 2014-05-16 20:21:34 +0000 | [diff] [blame] | 2 | |
Chris Allegretta | 053fabd | 2010-04-14 02:38:56 +0000 | [diff] [blame] | 3 | syntax "cmake" "(CMakeLists\.txt|\.cmake)$" |
Mike Scalora | 6a2032f | 2016-05-25 22:13:50 +0200 | [diff] [blame] | 4 | comment "#" |
Chris Allegretta | 053fabd | 2010-04-14 02:38:56 +0000 | [diff] [blame] | 5 | |
| 6 | icolor green "^[[:space:]]*[A-Z0-9_]+" |
| 7 | icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>" |
| 8 | |
| 9 | icolor brightgreen "^[[:space:]]*\<((else|end)?if|else|(end)?while|(end)?foreach|break)\>" |
| 10 | color brightgreen "\<(NOT|COMMAND|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)\>[[:space:]]" |
| 11 | color brightgreen "[[:space:]]\<(OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))\>[[:space:]]" |
| 12 | |
| 13 | icolor brightred "^[[:space:]]*\<((end)?(function|macro)|return)" |
| 14 | |
| 15 | icolor cyan start="\$(\{|ENV\{)" end="\}" |
| 16 | color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>" |
| 17 | |
| 18 | icolor brightblue "^([[:space:]]*)?#.*" |
| 19 | icolor brightblue "[[:space:]]#.*" |
| 20 | color ,green "[[:space:]]+$" |