mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-13 22:37:21 +03:00
6a2032f5b0
This allows for commenting or uncommenting a line or a bunch of lines with a single keystroke (default binding: M-3). The characters used for commenting/uncommenting are specified by the active syntax file. Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Mike Scalora <mike@scalora.org>
21 lines
837 B
Plaintext
21 lines
837 B
Plaintext
## Syntax highlighting for CMake files.
|
|
|
|
syntax "cmake" "(CMakeLists\.txt|\.cmake)$"
|
|
comment "#"
|
|
|
|
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:]]+$"
|