mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
Adding a tags query
This commit is contained in:
parent
bd5d1f69ae
commit
781060e01b
@ -48,3 +48,4 @@ treeSitter:
|
||||
'ts/edn-highlights.scm'
|
||||
]
|
||||
foldsQuery: 'ts/folds.scm'
|
||||
tagsQuery: 'ts/tags.scm'
|
||||
|
@ -95,7 +95,7 @@
|
||||
(list_lit
|
||||
"(" @punctuation.section.expression.begin (#is-not? test.descendantOfNodeWithData "clojure.dismissTag")
|
||||
.
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "^def(test|macro|n|n-|)$")
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "^def(on[^\s]*|test|macro|n|n-|)$")
|
||||
.
|
||||
(sym_lit) @meta.definition.global @entity.global
|
||||
")" @punctuation.section.expression.end)
|
||||
|
7
packages/language-clojure/grammars/ts/tags.scm
Normal file
7
packages/language-clojure/grammars/ts/tags.scm
Normal file
@ -0,0 +1,7 @@
|
||||
(list_lit
|
||||
"(" (#is-not? test.descendantOfNodeWithData "clojure.dismissTag")
|
||||
.
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "^def(on[^\s]*|test|macro|n|n-|)$")
|
||||
.
|
||||
(sym_lit) @definition.function
|
||||
")")
|
@ -26,6 +26,10 @@
|
||||
; ^ keyword.control
|
||||
; ^ entity.global
|
||||
|
||||
(defonce a "A STRING")
|
||||
; <- keyword.control
|
||||
; ^ entity.global
|
||||
|
||||
(defaults a)
|
||||
; ^ !keyword.control
|
||||
; ^ !entity.global
|
||||
|
Loading…
Reference in New Issue
Block a user