]> git.wh0rd.org Git - nano.git/commitdiff
2010-04-13 Felipe Bugno <necron@bol.com.br>
authorChris Allegretta <chrisa@asty.org>
Wed, 14 Apr 2010 02:38:56 +0000 (02:38 +0000)
committerChris Allegretta <chrisa@asty.org>
Wed, 14 Apr 2010 02:38:56 +0000 (02:38 +0000)
        * doc/syntax/cmake.nanorc: Added cmake syntax highlighting file.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4498 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/syntax/Makefile.am
doc/syntax/cmake.nanorc [new file with mode: 0644]

index bffa9456a74bcee694015d6193ed12cd2df3a7a8..29d561778091647b7ce605bf266fc522e3adce5e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2010-04-13 Felipe Bugno <necron@bol.com.br>
+       * doc/syntax/cmake.nanorc: Added cmake syntax highlighting file.
+
 2010-04-09 Chris Allegretta <chrisa@asty.org>
        * files.c (do_writeout): Better security fixes for backup file writing, 
          mangled from submission by Dan Rosenberg <dan.j.rosenberg at gmail>.
index 9566a182a31328edf36238f55f7b148bcae0e360..9999be315a245de8305dacc2cba2bf9d6c435820 100644 (file)
@@ -1,5 +1,6 @@
 pkgdata_DATA = asm.nanorc \
                c.nanorc \
+               cmake.nanorc \
                groff.nanorc \
                html.nanorc \
                java.nanorc \
diff --git a/doc/syntax/cmake.nanorc b/doc/syntax/cmake.nanorc
new file mode 100644 (file)
index 0000000..3c52f7d
--- /dev/null
@@ -0,0 +1,19 @@
+## CMake syntax highlighter for GNU Nano
+##
+syntax "cmake" "(CMakeLists\.txt|\.cmake)$"
+
+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:]]+$"