mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Metadata highlight for Clojure
This commit is contained in:
parent
1adeea69e3
commit
0506e951d2
@ -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"))
|
||||
|
@ -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"))
|
||||
|
@ -110,6 +110,9 @@ error/
|
||||
(:use [foo.bar]))
|
||||
; ^ invalid.deprecated
|
||||
|
||||
^{:some :meta} (def foo 10)
|
||||
; ^ meta.metadata.clojure
|
||||
|
||||
#_
|
||||
(+ '1 `(+ ba))
|
||||
; ^ comment.block
|
||||
|
Loading…
Reference in New Issue
Block a user