injections.scm

 1((comment) @injection.content
 2 (#set! injection.language "comment")
 3)
 4
 5; GitHub actions: JavaScript for workflow scripting (inline and block)
 6(block_mapping
 7  (block_mapping_pair
 8    key: (flow_node) @_uses (#eq? @_uses "uses")
 9    value: (flow_node) @_actions_ghs (#match? @_actions_ghs "^actions/github-script"))
10  (block_mapping_pair
11    key: (flow_node) @_with (#eq? @_with "with")
12    value: (block_node
13      (block_mapping
14        (block_mapping_pair
15          key: (flow_node) @_run (#eq? @_run "script")
16          value: [
17            (flow_node (plain_scalar (string_scalar) @injection.content))
18            (block_node (block_scalar) @injection.content)
19          ]
20          (#set! injection.language "javascript")
21        )
22      )
23    )
24  )
25)