highlights.scm

 1;; Literals
 2
 3(num_lit) @number
 4
 5[
 6  (char_lit)
 7  (str_lit)
 8] @string
 9
10[
11 (bool_lit)
12 (nil_lit)
13] @constant.builtin
14
15(kwd_lit) @constant
16
17;; Comments
18
19(comment) @comment
20
21;; Treat quasiquotation as operators for the purpose of highlighting.
22
23[
24 "'"
25 "`"
26 "~"
27 "@"
28 "~@"
29] @operator
30
31
32(list_lit
33  .
34  (sym_lit) @function)
35
36(list_lit
37  .
38  (sym_lit) @keyword
39  (#match? @keyword
40    "^(do|if|let|var|fn|fn*|loop*|recur|throw|try|catch|finally|set!|new|quote|->|->>)$"
41    ))