2016-08-29 06:02:37 +02:00
|
|
|
## Clojure Syntax Highlighting
|
|
|
|
##
|
2016-08-30 22:02:50 +02:00
|
|
|
|
|
|
|
syntax "clojure" "\.((clj[s|c]?)|edn)"
|
2016-08-29 06:02:37 +02:00
|
|
|
|
|
|
|
icolor green "defn? [0-9A-Z_]+"
|
|
|
|
|
2016-08-30 22:02:50 +02:00
|
|
|
color brightgreen "[#']"
|
2016-08-29 06:02:37 +02:00
|
|
|
color brightgreen "\<fn\>"
|
|
|
|
color green "\<(map|reduce|filter|println)\>"
|
|
|
|
|
2016-08-30 22:02:50 +02:00
|
|
|
color brightyellow "\<(if(-(let|not))?|condp?|when(-(let|not))?)\>"
|
|
|
|
color brightyellow "\<(do(all|run|seq|sync)?|recur|loop)\>"
|
2016-08-29 06:02:37 +02:00
|
|
|
color brightyellow "\<(try|catch|finally|throw)\>"
|
|
|
|
color yellow "(\:else) "
|
|
|
|
|
2016-08-30 22:02:50 +02:00
|
|
|
color brightcyan "\<(require|use|import|ns)\>"
|
|
|
|
color cyan "(\:(require|use|import)) "
|
2016-08-29 06:02:37 +02:00
|
|
|
|
2016-08-30 22:02:50 +02:00
|
|
|
color brightred "\<(let(fn)?|defn?)\>"
|
|
|
|
color brightwhite "\((\/|((not|[<>\=])?\=?))"
|
2016-08-29 06:02:37 +02:00
|
|
|
color brightwhite "\((\+|-|\*)'?"
|
2016-08-30 22:02:50 +02:00
|
|
|
color brightwhite "\<(and|or|not|mod|quot|rem|inc|dec)\>"
|
2016-08-29 06:02:37 +02:00
|
|
|
|
|
|
|
color magenta "[\(\)]"
|
|
|
|
color magenta "(\[|\])"
|
|
|
|
|
|
|
|
color yellow "\<(true|false|nil)\>"
|
|
|
|
color brightyellow "(["][^"]*[^\\]["])|("")"
|
|
|
|
|
2016-08-30 22:02:50 +02:00
|
|
|
color brightblue ";.*$"
|
2016-08-29 06:02:37 +02:00
|
|
|
|
|
|
|
color ,green "[[:space:]]+$"
|