From 7489e9010918f07cf1b83b3ecb18ab887e0e7381 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Thu, 8 Nov 2012 13:22:38 -0600 Subject: [PATCH] edits to cmake to make more readable. --- cmake.nanorc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmake.nanorc b/cmake.nanorc index 3c52f7d..7dd6c18 100644 --- a/cmake.nanorc +++ b/cmake.nanorc @@ -6,14 +6,17 @@ 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 "\<(COPY|NOT|COMMAND|PROPERTY|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="\}" +#String Color +color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" +color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" + +icolor brightred 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:]]+$"