mirror of https://github.com/Wilfred/difftastic/
Update Clojure highlighting to match upstreamed PR
See https://github.com/sogaiu/tree-sitter-clojure/pull/20pull/185/head
parent
ec2b72bff2
commit
b6cd8c9a42
@ -1,7 +1,32 @@
|
||||
;; Basic, limited highlighting for Clojure.
|
||||
;; TODO: submit upstream.
|
||||
|
||||
(comment) @comment
|
||||
(str_lit) @string
|
||||
;; Literals
|
||||
|
||||
(num_lit) @number
|
||||
|
||||
[
|
||||
(char_lit)
|
||||
(str_lit)
|
||||
] @string
|
||||
|
||||
[
|
||||
(bool_lit)
|
||||
(nil_lit)
|
||||
] @constant.builtin
|
||||
|
||||
(kwd_lit) @constant
|
||||
|
||||
;; Comments
|
||||
|
||||
(comment) @comment
|
||||
|
||||
;; Treat quasiquotation as operators for the purpose of highlighting.
|
||||
|
||||
[
|
||||
"'"
|
||||
"`"
|
||||
"~"
|
||||
"@"
|
||||
"~@"
|
||||
] @operator
|
||||
|
||||
Loading…
Reference in New Issue