@ -20,22 +20,24 @@
; Modified for Helix from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/yaml/injections.scm
;; Github actions ("run") / Gitlab CI ("scripts")
;; Github actions: run
;; Gitlab CI: scripts, before_script, after_script
;; Buildkite: command, commands
( block_mapping_pair
key: ( flow_node ) @_run ( # match? @_run "^(run|script|before_script|after_script)$" )
key: ( flow_node ) @_run ( # any-of? @_run "run" "script" "before_script" "after_script" "command" "commands ")
value: ( flow_node
( plain_scalar
( string_scalar ) @injection . content )
( # set! injection . language "bash" ) ) )
( block_mapping_pair
key: ( flow_node ) @_run ( # match? @_run "^(run|script|before_script|after_script)$ ")
key: ( flow_node ) @_run ( # any-of? @_run "run" "script" "before_script" "after_script" "command" "commands ")
value: ( block_node
( block_scalar ) @injection . content
( # set! injection . language "bash" ) ) )
( block_mapping_pair
key: ( flow_node ) @_run ( # match? @_run "^(run|script|before_script|after_script)$ ")
key: ( flow_node ) @_run ( # any-of? @_run "run" "script" "before_script" "after_script" "command" "commands ")
value: ( block_node
( block_sequence
( block_sequence_item
@ -45,7 +47,7 @@
( # set! injection . language "bash" ) ) ) ) )
( block_mapping_pair
key: ( flow_node ) @_run ( # match? @_run "^(run|script|before_script|after_script)$ ")
key: ( flow_node ) @_run ( # any-of? @_run "run" "script" "before_script" "after_script" "command" "commands ")
value: ( block_node
( block_sequence
( block_sequence_item