Skip to content

Instantly share code, notes, and snippets.

@sogaiu
Last active October 31, 2020 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sogaiu/a309e5391cf0c5cc723b659ba2fd0e55 to your computer and use it in GitHub Desktop.
Save sogaiu/a309e5391cf0c5cc723b659ba2fd0e55 to your computer and use it in GitHub Desktop.
alabaster dark ish -- emacs-tree-sitter + clojure
;; https://github.com/tonsky/sublime-scheme-alabaster (dark)
(dis_expr) @comment
["("
")"
"["
"]"
"{"
"}"
"@"
"'"
"`"
"~"
"^"
"~@"] @comment
(comment) @doc
[(bool_lit)
(char_lit)
(kwd_lit)
(nil_lit)
(num_lit)] @type
[(regex_lit)
(str_lit)] @function
(regex_lit) @string.special
(meta_lit) @punctuation
;; top-level def-like things
(source
(list_lit
.
(sym_lit) @punctuation
.
(sym_lit) @constant
(.match? @punctuation "^(declare|def|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defprotocol|defstruct|deftype|ns)$")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment