aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/yaml/highlights.scm2
-rw-r--r--queries/yaml/injections.scm4
2 files changed, 3 insertions, 3 deletions
diff --git a/queries/yaml/highlights.scm b/queries/yaml/highlights.scm
index 7e3c3a5e6..fb3338eb3 100644
--- a/queries/yaml/highlights.scm
+++ b/queries/yaml/highlights.scm
@@ -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
diff --git a/queries/yaml/injections.scm b/queries/yaml/injections.scm
index c2b5bf619..40727bbd2 100644
--- a/queries/yaml/injections.scm
+++ b/queries/yaml/injections.scm
@@ -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))))))