mirror of
https://github.com/scopatz/nanorc
synced 2024-11-25 18:05:39 +01:00
Merge pull request #112 from CoffeeTableEnnui/patch-2
Update clojure.nanorc
This commit is contained in:
commit
c79521658c
@ -1,23 +1,26 @@
|
|||||||
## Clojure Syntax Highlighting
|
## Clojure Syntax Highlighting
|
||||||
##
|
##
|
||||||
syntax "Clojure" "\.((clj[s|c]?)|edn)"
|
|
||||||
|
syntax "clojure" "\.((clj[s|c]?)|edn)"
|
||||||
|
|
||||||
icolor green "defn? [0-9A-Z_]+"
|
icolor green "defn? [0-9A-Z_]+"
|
||||||
|
|
||||||
color brightgreen "#"
|
color brightgreen "[#']"
|
||||||
color brightgreen "\<fn\>"
|
color brightgreen "\<fn\>"
|
||||||
color green "\<(map|reduce|filter|println)\>"
|
color green "\<(map|reduce|filter|println)\>"
|
||||||
|
|
||||||
color brightyellow "\<(if(-(let|not))?|condp?)\>"
|
color brightyellow "\<(if(-(let|not))?|condp?|when(-(let|not))?)\>"
|
||||||
|
color brightyellow "\<(do(all|run|seq|sync)?|recur|loop)\>"
|
||||||
color brightyellow "\<(try|catch|finally|throw)\>"
|
color brightyellow "\<(try|catch|finally|throw)\>"
|
||||||
color yellow "(\:else) "
|
color yellow "(\:else) "
|
||||||
|
|
||||||
color brightcyan "\<(require|use|import)\>"
|
color brightcyan "\<(require|use|import|ns)\>"
|
||||||
|
color cyan "(\:(require|use|import)) "
|
||||||
|
|
||||||
color brightred "\<defn?\>"
|
color brightred "\<(let(fn)?|defn?)\>"
|
||||||
color brightwhite "\((\/|([<>\=]?\=?))"
|
color brightwhite "\((\/|((not|[<>\=])?\=?))"
|
||||||
color brightwhite "\((\+|-|\*)'?"
|
color brightwhite "\((\+|-|\*)'?"
|
||||||
color brightwhite "\<(and|or|not|mod)\>"
|
color brightwhite "\<(and|or|not|mod|quot|rem|inc|dec)\>"
|
||||||
|
|
||||||
color magenta "[\(\)]"
|
color magenta "[\(\)]"
|
||||||
color magenta "(\[|\])"
|
color magenta "(\[|\])"
|
||||||
@ -25,6 +28,6 @@ color magenta "(\[|\])"
|
|||||||
color yellow "\<(true|false|nil)\>"
|
color yellow "\<(true|false|nil)\>"
|
||||||
color brightyellow "(["][^"]*[^\\]["])|("")"
|
color brightyellow "(["][^"]*[^\\]["])|("")"
|
||||||
|
|
||||||
color brightblue ";;.*$"
|
color brightblue ";.*$"
|
||||||
|
|
||||||
color ,green "[[:space:]]+$"
|
color ,green "[[:space:]]+$"
|
||||||
|
Loading…
Reference in New Issue
Block a user