Debian Codegraph @

runtime/queries/yaml/injections.scm

raw symbols SCIP
1 ((comment) @injection.content
2 (#set! injection.language "comment"))
3
4 ; The following code in this file until the ";;; END nvim-treesitter LICENSED CODE"
5 ; marker incorporates work covered by the following copyright and permission notice:
6 ;
7 ; Copyright 2023 the nvim-treesitter authors
8 ;
9 ; Licensed under the Apache License, Version 2.0 (the "License");
10 ; you may not use this file except in compliance with the License.
11 ; You may obtain a copy of the License at
12 ;
13 ; http://www.apache.org/licenses/LICENSE-2.0
14 ;
15 ; Unless required by applicable law or agreed to in writing, software
16 ; distributed under the License is distributed on an "AS IS" BASIS,
17 ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 ; See the License for the specific language governing permissions and
19 ; limitations under the License.
20
21 ; Modified for Helix from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/yaml/injections.scm
22
23 ;; GitHub actions: run
24 ;; Buildkite: command, commands
25 (block_mapping_pair
26 key: (flow_node) @_run (#any-of? @_run "run" "command" "commands")
27 value: (flow_node
28 (plain_scalar
29 (string_scalar) @injection.content)
30 (#set! injection.language "bash")))
31
32 (block_mapping_pair
33 key: (flow_node) @_run (#any-of? @_run "run" "command" "commands")
34 value: (block_node
35 (block_scalar) @injection.content
36 (#set! injection.language "bash")))
37
38 (block_mapping_pair
39 key: (flow_node) @_run (#any-of? @_run "run" "command" "commands")
40 value: (block_node
41 (block_sequence
42 (block_sequence_item
43 (flow_node
44 (plain_scalar
45 (string_scalar) @injection.content))
46 (#set! injection.language "bash")))))
47
48 (block_mapping_pair
49 key: (flow_node) @_run (#any-of? @_run "run" "command" "commands")
50 value: (block_node
51 (block_sequence
52 (block_sequence_item
53 (block_node
54 (block_scalar) @injection.content
55 (#set! injection.language "bash"))))))
56
57 ;;; END nvim-treesitter LICENSED CODE