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_]+"
|
|
|
|
|
2018-08-09 10:09:19 +02:00
|
|
|
color green "[#']"
|
|
|
|
color green "\<fn\>"
|
2016-08-29 06:02:37 +02:00
|
|
|
color green "\<(map|reduce|filter|println)\>"
|
|
|
|
|
2018-08-09 10:09:19 +02:00
|
|
|
color yellow "\<(if(-(let|not))?|condp?|when(-(let|not))?)\>"
|
|
|
|
color yellow "\<(do(all|run|seq|sync)?|recur|loop)\>"
|
|
|
|
color yellow "\<(try|catch|finally|throw)\>"
|
2016-08-29 06:02:37 +02:00
|
|
|
color yellow "(\:else) "
|
|
|
|
|
2018-08-09 10:09:19 +02:00
|
|
|
color cyan "\<(require|use|import|ns)\>"
|
2016-08-30 22:02:50 +02:00
|
|
|
color cyan "(\:(require|use|import)) "
|
2016-08-29 06:02:37 +02:00
|
|
|
|
2018-08-09 10:09:19 +02:00
|
|
|
color red "\<(let(fn)?|defn?)\>"
|
|
|
|
color white "\((\/|((not|[<>\=])?\=?))"
|
|
|
|
color white "\((\+|-|\*)'?"
|
|
|
|
color white "\<(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)\>"
|
2018-08-09 10:09:19 +02:00
|
|
|
color yellow "(["][^"]*[^\\]["])|("")"
|
2016-08-29 06:02:37 +02:00
|
|
|
|
2018-08-09 10:09:19 +02:00
|
|
|
color blue ";.*$"
|
2016-08-29 06:02:37 +02:00
|
|
|
|
|
|
|
color ,green "[[:space:]]+$"
|