Skip to content

Instantly share code, notes, and snippets.

@codification
Created February 6, 2012 22:04
Show Gist options
  • Save codification/1755253 to your computer and use it in GitHub Desktop.
Save codification/1755253 to your computer and use it in GitHub Desktop.
Clojure Syntax highlighting in shjs (for showoff)
# 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 = "{|}|[|]"
@codification
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment