~mfisch/nano/update_to_2.3.1_try2

« back to all changes in this revision

Viewing changes to doc/syntax/cmake.nanorc

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach
  • Date: 2010-04-15 19:26:23 UTC
  • mfrom: (1.3.1 upstream) (20.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100415192623-aasmdjg698t4ezcb
Tags: 2.2.4-1
* The "905€" release.
* New upstream release.
  - fixes minor security issues: symlink attack (CVE-2010-1160)
    and ownership of arbitrary files (CVE-2010-1161). Closes: #577817.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## CMake syntax highlighter for GNU Nano
 
2
##
 
3
syntax "cmake" "(CMakeLists\.txt|\.cmake)$"
 
4
 
 
5
icolor green "^[[:space:]]*[A-Z0-9_]+"
 
6
icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>"
 
7
 
 
8
icolor brightgreen "^[[:space:]]*\<((else|end)?if|else|(end)?while|(end)?foreach|break)\>"
 
9
color brightgreen "\<(NOT|COMMAND|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)\>[[:space:]]"
 
10
color brightgreen "[[:space:]]\<(OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))\>[[:space:]]"
 
11
 
 
12
icolor brightred "^[[:space:]]*\<((end)?(function|macro)|return)"
 
13
 
 
14
icolor cyan start="\$(\{|ENV\{)" end="\}"
 
15
color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>"
 
16
 
 
17
icolor brightblue "^([[:space:]]*)?#.*"
 
18
icolor brightblue "[[:space:]]#.*"
 
19
color ,green "[[:space:]]+$"