Debian Codegraph @

runtime/queries/jq/injections.scm

raw symbols SCIP
1 ;; From nvim-treesitter, contributed by @ObserverOfTime et al.
2
3 ((comment) @injection.content
4 (#set! injection.language "comment"))
5
6 ; test(val)
7 (query
8 ((funcname) @_function
9 (#any-of? @_function "test" "match" "capture" "scan" "split" "splits" "sub" "gsub"))
10 (args
11 .
12 (query
13 (string) @injection.content
14 (#set! injection.language "regex"))))
15
16 ; test(regex; flags)
17 (query
18 ((funcname) @_function
19 (#any-of? @_function "test" "match" "capture" "scan" "split" "splits" "sub" "gsub"))
20 (args
21 .
22 (args
23 (query
24 (string) @injection.content
25 (#set! injection.language "regex")))))