Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/yaml/injections.scm')
| -rw-r--r-- | runtime/queries/yaml/injections.scm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/queries/yaml/injections.scm b/runtime/queries/yaml/injections.scm index a16a945a..e0e1094b 100644 --- a/runtime/queries/yaml/injections.scm +++ b/runtime/queries/yaml/injections.scm @@ -21,23 +21,22 @@ ; Modified for Helix from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/yaml/injections.scm ;; GitHub actions: run -;; Gitlab CI: scripts, before_script, after_script ;; Buildkite: command, commands (block_mapping_pair - key: (flow_node) @_run (#any-of? @_run "run" "script" "before_script" "after_script" "command" "commands") + key: (flow_node) @_run (#any-of? @_run "run" "command" "commands") value: (flow_node (plain_scalar (string_scalar) @injection.content) (#set! injection.language "bash"))) (block_mapping_pair - key: (flow_node) @_run (#any-of? @_run "run" "script" "before_script" "after_script" "command" "commands") + key: (flow_node) @_run (#any-of? @_run "run" "command" "commands") value: (block_node (block_scalar) @injection.content (#set! injection.language "bash"))) (block_mapping_pair - key: (flow_node) @_run (#any-of? @_run "run" "script" "before_script" "after_script" "command" "commands") + key: (flow_node) @_run (#any-of? @_run "run" "command" "commands") value: (block_node (block_sequence (block_sequence_item @@ -47,7 +46,7 @@ (#set! injection.language "bash"))))) (block_mapping_pair - key: (flow_node) @_run (#any-of? @_run "run" "script" "before_script" "after_script" "command" "commands") + key: (flow_node) @_run (#any-of? @_run "run" "command" "commands") value: (block_node (block_sequence (block_sequence_item |