Create clojure.nanorc

Proposing adding syntax highlighting for Clojure.
This commit is contained in:
CoffeeTableEnnui 2016-08-28 21:02:37 -07:00 committed by GitHub
parent f2f6bafa52
commit 564cb1fae6

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:]]+$"