Created
February 6, 2012 22:04
-
-
Save codification/1755253 to your computer and use it in GitHub Desktop.
Clojure Syntax highlighting in shjs (for showoff)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clojure syntax highlighting for GNU source-highlight | |
# rocks with SHJS | |
comment start ";" | |
include "number.lang" | |
vardef SPECIALCHAR = '\\.' | |
environment string delim "\"" "\"" begin | |
specialchar = $SPECIALCHAR | |
end | |
type = "int|byte|boolean|char|long|float|double|short|void" | |
keyword = "defn|defrecord|defmacro|defmulti|defmethod|def|deftype|defprotocol|if|when|case|cond|loop|recur|fn|ns|import|require|use" | |
predef_func = "println|doc|pprint|print|get|assoc|cons|conj|first|last|rest|dissoc|type|class" | |
include "symbols.lang" | |
symbol = "{|}|[|]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shamelessly stolen (and modified) from https://gist.github.com/265810/78857041d922c21488415a9b7ec0300aece47009