Skip to content

Commit 4dde88c

Browse files
authored
languages: Support double quoted keys in YAML highlights (zed-industries#48063)
Before: <img width="520" height="74" alt="before" src="https://github.com/user-attachments/assets/5c010819-a20e-438e-b7f6-218b9f241070" /> After: <img width="532" height="81" alt="after" src="https://github.com/user-attachments/assets/51528d3b-439f-4fcf-9a7c-b06dec6a7e81" /> Release Notes: - Improved YAML highlights to support quoted keys Co-authored-by: ozacod <ozacod@users.noreply.github.com>
1 parent a6ab1f1 commit 4dde88c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/languages/src/yaml/highlights.scm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
(tag)
2424
] @type
2525

26-
key: (flow_node (plain_scalar (string_scalar) @property))
26+
key: (flow_node
27+
[
28+
(plain_scalar (string_scalar))
29+
(double_quote_scalar)
30+
(single_quote_scalar)
31+
] @property)
2732

2833
[
2934
","

0 commit comments

Comments
 (0)