helix/runtime/queries/tsq/injections.scm

10 lines
255 B
Scheme

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