Skip to content

Commit 9c3c77d

Browse files
committed
chore: Improve YAML highlighting
1 parent 86f5037 commit 9c3c77d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

queries/yaml/highlights.scm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
;; keys
22
(block_mapping_pair
3-
key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable))
3+
key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @property))
44
(block_mapping_pair
5-
key: (flow_node (plain_scalar (string_scalar) @variable)))
5+
key: (flow_node (plain_scalar (string_scalar) @property)))
66

77
;; keys within inline {} blocks
88
(flow_mapping
9-
(_ key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable)))
9+
(_ key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @property)))
1010
(flow_mapping
11-
(_ key: (flow_node (plain_scalar (string_scalar) @variable))))
11+
(_ key: (flow_node (plain_scalar (string_scalar) @property))))
1212

1313
["[" "]" "{" "}"] @punctuation.bracket
1414
["," "-" ":" "?" ">" "|"] @punctuation.delimiter

0 commit comments

Comments
 (0)