Debian Codegraph @

runtime/queries/nu/injections.scm

raw symbols SCIP
1 ((comment) @injection.content
2 (#set! injection.language "comment"))
3
4 (command
5 head: ((cmd_identifier) @_cmd
6 (#match? @_cmd "^\\s*(find|parse|split|str)$"))
7 flag: (_
8 name: (_) @_flag
9 (#any-of? @_flag "r" "regex"))
10 .
11 arg: (_
12 (string_content) @injection.content
13 (#set! injection.language "regex")))
14
15 (_
16 opr: [
17 "=~"
18 "!~"
19 "like"
20 "not-like"
21 ]
22 rhs: (_
23 (string_content) @injection.content
24 (#set! injection.language "regex")))
25
26 (command
27 head: (_) @_cmd
28 (#any-of? @_cmd "nu" "$nu.current-exe")
29 flag: (_
30 name: (_) @_flag
31 (#any-of? @_flag "c" "e" "commands" "execute"))
32 .
33 arg: (_
34 (string_content) @injection.content
35 (#set! injection.language "nu")))
36
37 (command
38 head: (cmd_identifier) @_command (#any-of? @_command "jq" "jaq")
39 .
40 arg: (_ (string_content) @injection.content)
41 (#set! injection.language "jq")
42 )
43
44 (command
45 head: (cmd_identifier) @_command (#eq? @_command "fish")
46 flag: (short_flag "-") @_flag (#match? @_flag "^-.*c$")
47 .
48 arg: (_ (string_content) @injection.content)
49 (#set! injection.language "fish")
50 )