injections(yaml): fix injections

This commit is contained in:
figsoda 2022-12-01 10:38:01 -05:00 committed by Stephan Seitz
parent e8b765bee1
commit d2d8980c5c
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
(null_scalar) @constant.builtin
(double_quote_scalar) @string
(single_quote_scalar) @string
(block_scalar) @string
((block_scalar) @string (#set! "priority" 99))
(string_scalar) @string
(escape_sequence) @string.escape
(integer_scalar) @number

View file

@ -9,7 +9,7 @@
(block_mapping_pair
key: (flow_node) @_run (#any-of? @_run "run" "script" "before_script" "after_script")
value: (block_node
(block_scalar) @bash (#offset! @bash 0 0 0 0)))
(block_scalar) @bash (#offset! @bash 0 1 0 0)))
(block_mapping_pair
key: (flow_node) @_run (#any-of? @_run "run" "script" "before_script" "after_script")
@ -24,4 +24,4 @@
(block_sequence
(block_sequence_item
(block_node
(block_scalar) @bash)))))
(block_scalar) @bash (#offset! @bash 0 1 0 0))))))