Adding a tags query

This commit is contained in:
Maurício Szabo 2024-04-30 15:35:52 -03:00
parent bd5d1f69ae
commit 781060e01b
4 changed files with 13 additions and 1 deletions

View File

@ -48,3 +48,4 @@ treeSitter:
'ts/edn-highlights.scm'
]
foldsQuery: 'ts/folds.scm'
tagsQuery: 'ts/tags.scm'

View File

@ -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)

View 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
")")

View File

@ -26,6 +26,10 @@
; ^ keyword.control
; ^ entity.global
(defonce a "A STRING")
; <- keyword.control
; ^ entity.global
(defaults a)
; ^ !keyword.control
; ^ !entity.global