Metadata highlight for Clojure

This commit is contained in:
Maurício Szabo 2023-08-04 15:52:31 -03:00
parent 1adeea69e3
commit 0506e951d2
3 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,8 @@
"}" @punctuation.section.set.end)
@meta.set
(meta_lit) @meta.metadata.clojure
((regex_lit) @string.regexp (#is-not? test.descendantOfNodeWithData "clojure.dismissTag"))
((sym_lit) @meta.symbol (#is-not? test.descendantOfNodeWithData "clojure.dismissTag"))
((kwd_lit) @constant.keyword (#is-not? test.descendantOfNodeWithData "clojure.dismissTag"))

View File

@ -116,6 +116,8 @@
"}" @punctuation.section.set.end)
@meta.set
(meta_lit) @meta.metadata.clojure
((regex_lit) @string.regexp (#is-not? test.descendantOfNodeWithData "clojure.dismissTag"))
((sym_lit) @meta.symbol (#is-not? test.descendantOfNodeWithData "clojure.dismissTag"))
((kwd_lit) @constant.keyword (#is-not? test.descendantOfNodeWithData "clojure.dismissTag"))

View File

@ -110,6 +110,9 @@ error/
(:use [foo.bar]))
; ^ invalid.deprecated
^{:some :meta} (def foo 10)
; ^ meta.metadata.clojure
#_
(+ '1 `(+ ba))
; ^ comment.block