Skip to content

Commit

Permalink
chore: Improve YAML highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Apr 21, 2024
1 parent 86f5037 commit 9c3c77d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions queries/yaml/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
;; keys
(block_mapping_pair
key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable))
key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @property))
(block_mapping_pair
key: (flow_node (plain_scalar (string_scalar) @variable)))
key: (flow_node (plain_scalar (string_scalar) @property)))

;; keys within inline {} blocks
(flow_mapping
(_ key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable)))
(_ key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @property)))
(flow_mapping
(_ key: (flow_node (plain_scalar (string_scalar) @variable))))
(_ key: (flow_node (plain_scalar (string_scalar) @property))))

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

0 comments on commit 9c3c77d

Please sign in to comment.