summaryrefslogtreecommitdiff
path: root/queries/yaml
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2022-09-18 20:15:23 +0300
committerStephan Seitz <stephan.seitz@fau.de>2022-10-15 08:49:01 -0700
commit9b43ab819c756f01d2977cd481bdcaead6867174 (patch)
treefb9fb63ed00958b7e7e71a3634554c77848f2aab /queries/yaml
parent0bfeb5484ec6323df6504cd0548dc9c1dc636aef (diff)
highlights: use @preproc where appropriate
Diffstat (limited to 'queries/yaml')
-rw-r--r--queries/yaml/highlights.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/queries/yaml/highlights.scm b/queries/yaml/highlights.scm
index 311162c1..7e3c3a5e 100644
--- a/queries/yaml/highlights.scm
+++ b/queries/yaml/highlights.scm
@@ -11,9 +11,14 @@
(anchor_name) @type
(alias_name) @type
(tag) @type
-(yaml_directive) @keyword
(ERROR) @error
+[
+ (yaml_directive)
+ (tag_directive)
+ (reserved_directive)
+] @preproc
+
(block_mapping_pair
key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @field))
(block_mapping_pair