Dot_Files/.config/nano/syntax/clojure.nanorc
Price Hiller f7568438ef [ Nano ] Added nano dot files and relevant syntax files
In the horrible scenario in which neovim or vim are not available on a
system I use (and yeah, I found one recently wtf), nano is a simple
alternative that gets the job done... these files are for my comfort IN
nano but not optimal. 😞
2022-01-21 05:34:52 -06:00

34 lines
861 B
Plaintext

## 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?|when(-(let|not))?)\>"
color brightyellow "\<(do(all|run|seq|sync)?|recur|loop)\>"
color brightyellow "\<(try|catch|finally|throw)\>"
color yellow "(\:else) "
color brightcyan "\<(require|use|import|ns)\>"
color cyan "(\:(require|use|import)) "
color brightred "\<(let(fn)?|defn?)\>"
color brightwhite "\((\/|((not|[<>\=])?\=?))"
color brightwhite "\((\+|-|\*)'?"
color brightwhite "\<(and|or|not|mod|quot|rem|inc|dec)\>"
color magenta "[\(\)]"
color magenta "(\[|\])"
color yellow "\<(true|false|nil)\>"
color brightyellow "(["][^"]*[^\\]["])|("")"
color brightblue ";.*$"
color ,green "[[:space:]]+$"