1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-22 08:35:39 +01:00

Merge pull request #109 from CoffeeTableEnnui/patch-1

Create clojure.nanorc
This commit is contained in:
Anthony Scopatz 2016-08-29 00:03:58 -04:00 committed by GitHub
commit f78e3b8baf

30
clojure.nanorc Normal file
View File

@ -0,0 +1,30 @@
## Clojure Syntax Highlighting
##
syntax "Clojure" "\.((clj[s|c]?)|edn)"
icolor green "defn? [0-9A-Z_]+"
color brightgreen "#"
color brightgreen "\<fn\>"
color green "\<(map|reduce|filter|println)\>"
color brightyellow "\<(if(-(let|not))?|condp?)\>"
color brightyellow "\<(try|catch|finally|throw)\>"
color yellow "(\:else) "
color brightcyan "\<(require|use|import)\>"
color brightred "\<defn?\>"
color brightwhite "\((\/|([<>\=]?\=?))"
color brightwhite "\((\+|-|\*)'?"
color brightwhite "\<(and|or|not|mod)\>"
color magenta "[\(\)]"
color magenta "(\[|\])"
color yellow "\<(true|false|nil)\>"
color brightyellow "(["][^"]*[^\\]["])|("")"
color brightblue ";;.*$"
color ,green "[[:space:]]+$"