injections.scm

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