From 312a4e945e956d435c4acf20f500dc04ff7a845f Mon Sep 17 00:00:00 2001 From: Mikkel Mondrup Kristensen Date: Mon, 7 Apr 2025 20:58:16 +0200 Subject: [PATCH] Add support for cmd both direct and with multiline --- queries/yaml/injections.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/queries/yaml/injections.scm b/queries/yaml/injections.scm index d0a3c930f..143af1924 100644 --- a/queries/yaml/injections.scm +++ b/queries/yaml/injections.scm @@ -2,10 +2,10 @@ (#set! injection.language "comment")) ; Github actions ("run") / Gitlab CI ("scripts") -; Taskfile scripts ("cmds", "sh") +; Taskfile scripts ("cmds", "cmd", "sh") (block_mapping_pair key: (flow_node) @_run - (#any-of? @_run "run" "script" "before_script" "after_script" "cmds" "sh") + (#any-of? @_run "run" "script" "before_script" "after_script" "cmds" "cmd" "sh") value: (flow_node (plain_scalar (string_scalar) @injection.content) @@ -13,7 +13,7 @@ (block_mapping_pair key: (flow_node) @_run - (#any-of? @_run "run" "script" "before_script" "after_script" "cmds" "sh") + (#any-of? @_run "run" "script" "before_script" "after_script" "cmds" "cmd" "sh") value: (block_node (block_scalar) @injection.content (#set! injection.language "bash")