mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Fixed syntaxes for Regexp and other elements
This commit is contained in:
parent
8c0c5e790f
commit
354f63c590
36
packages/language-clojure/grammars/ts/edn-highlights.scm
Normal file
36
packages/language-clojure/grammars/ts/edn-highlights.scm
Normal file
@ -0,0 +1,36 @@
|
||||
;; Collections
|
||||
(list_lit
|
||||
"(" @punctuation.section.list.begin (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag")
|
||||
")" @punctuation.section.list.end)
|
||||
@meta.vector
|
||||
|
||||
(vec_lit
|
||||
"[" @punctuation.section.vector.begin (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag")
|
||||
"]" @punctuation.section.vector.end)
|
||||
@meta.vector
|
||||
|
||||
(map_lit
|
||||
"{" @punctuation.section.map.begin (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag")
|
||||
"}" @punctuation.section.map.end)
|
||||
@meta.map
|
||||
|
||||
(set_lit
|
||||
("#" "{") @punctuation.section.set.begin (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag")
|
||||
"}" @punctuation.section.set.end)
|
||||
@meta.map
|
||||
|
||||
((regex_lit) @string.regexp (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag"))
|
||||
((sym_lit) @meta.symbol (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag"))
|
||||
((kwd_lit) @constant.keyword (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag"))
|
||||
((str_lit) @string.quoted.double (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag"))
|
||||
((num_lit) @constant.numeric (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag"))
|
||||
((nil_lit) @constant.numeric (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag"))
|
||||
((bool_lit) @constant.language (#set! test.onlyIfNotDescendantOfNodeWithData clojure.dismissTag))
|
||||
(comment) @comment.line.semicolon
|
||||
((dis_expr)
|
||||
@comment.block.clojure
|
||||
(#set! test.onlyIfConfig language-clojure.dismissTag)
|
||||
(#set! clojure.dismissTag true)
|
||||
(#set! test.final true))
|
||||
|
||||
("ERROR" @invalid.illegal)
|
@ -1,9 +1,3 @@
|
||||
(quoting_lit
|
||||
value: (list_lit
|
||||
"(" @punctuation.section.expression.begin (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag")
|
||||
.
|
||||
(sym_lit) @meta.symbol (#set! final "true")))
|
||||
|
||||
;; Collections
|
||||
(anon_fn_lit
|
||||
"(" @punctuation.section.expression.begin (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag")
|
||||
@ -74,6 +68,7 @@
|
||||
(sym_lit) @meta.definition.global @entity.global
|
||||
")" @punctuation.section.expression.end)
|
||||
|
||||
((regex_lit) @string.regexp (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag"))
|
||||
((sym_lit) @meta.symbol (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag"))
|
||||
((kwd_lit) @constant.keyword (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag"))
|
||||
((str_lit) @string.quoted.double (#set! test.onlyIfNotDescendantOfNodeWithData "clojure.dismissTag"))
|
||||
|
Loading…
Reference in New Issue
Block a user