helix/runtime/queries/tsq/injections.scm
Michael Davis e0bccd2c58
tsq: Tune highlights to more closely match 24.07 release
The changes in #12148 were a bit radical - this restores some
customizations we had like using "label" for captures and not
highlighting the '#' or '?'/'!' parts differently. Also the highlighting
for predicates we do (not) support has been restored.
2025-01-02 15:37:18 -05:00

10 lines
272 B
Scheme

((comment) @injection.content
(#set! injection.language "comment"))
((predicate
name: (identifier) @_name
parameters:
(parameters
(string (string_content) @injection.content)))
(#any-of? @_name "match" "not-match")
(#set! injection.language "regex"))