From 8af4d9a2057d6f26342efcf1a88541483128b7ad Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Thu, 8 Nov 2012 13:09:19 -0600 Subject: [PATCH] Added cmake file. --- cmake.nanorc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cmake.nanorc diff --git a/cmake.nanorc b/cmake.nanorc new file mode 100644 index 0000000..3c52f7d --- /dev/null +++ b/cmake.nanorc @@ -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:]]+$"