Debian Codegraph @

runtime/queries/miseconfig/injections.scm

raw symbols SCIP
1 ; inherits: toml
2
3 ; This part covers simple tasks where only the command(s) to run
4 ; are specified as a string or array of strings, e.g.
5 ;
6 ; [tasks]
7 ; simple = "simple-command arg1 arg2"
8 ; many-simple = [
9 ; "simple-command-1",
10 ; "simple-command-2",
11 ; ]
12 ;
13 (table
14 (bare_key) @table-name (#eq? @table-name "tasks")
15 (pair (_) [
16 ((string) @injection.shebang @injection.content (#set! injection.language "bash"))
17 ((array (string) @injection.shebang @injection.content (#set! injection.language "bash")))
18 ])
19 )
20
21 ; This part covers advanced tasks which are specified as a table.
22 ; Only the "run" key is subject to injections.
23 ;
24 ; [tasks.foo]
25 ; description = "This is regular text."
26 ; run = "this is bash"
27 ;
28 (table
29 (dotted_key (bare_key) @table-name (#eq? @table-name "tasks"))
30 (pair (bare_key) @key-name (#eq? @key-name "run") [
31 ((string) @injection.shebang @injection.content (#set! injection.language "bash"))
32 ((array (string) @injection.shebang @injection.content (#set! injection.language "bash")))
33 ])
34 )