mirror of
https://github.com/helix-editor/helix
synced 2026-01-26 17:48:22 +01:00
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.
11 lines
272 B
Scheme
11 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"))
|