cmake.nanorc 937 B

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