Debian Codegraph @

runtime/queries/cylc/injections.scm

raw symbols SCIP
1 ((setting
2 key: (key) @key
3 (#match? @key "^script$|-script$|^script-")
4 value: (_
5 (string_content) @injection.content))
6 (#set! "injection.language" "bash"))
7
8 ; Requires no spacing around "=" in environment settings for proper highlighting.
9 ; Could be improved if Tree-sitter allowed to specify the target node of the injected
10 ; language, instead of always using the root node.
11 ; See this proposal:
12 ; https://github.com/tree-sitter/tree-sitter/issues/3625
13 ((task_section
14 (sub_section_2
15 name: (_) @section_name
16 (#eq? @section_name "environment")
17 (setting) @injection.content))
18 (#set! "injection.language" "bash")
19 (#set! injection.combined)
20 (#set! injection.include-children))