Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

languages: Support double quoted keys in YAML highlights (#48063)

ozacod4dde88cfe561
diff --git a/crates/languages/src/yaml/highlights.scm b/crates/languages/src/yaml/highlights.scm
index 0e66aca66de..dfecf3f9d42 100644
--- a/crates/languages/src/yaml/highlights.scm
+++ b/crates/languages/src/yaml/highlights.scm
@@ -23,7 +23,12 @@
(tag)
] @type
-key: (flow_node (plain_scalar (string_scalar) @property))
+key: (flow_node
+ [
+ (plain_scalar (string_scalar))
+ (double_quote_scalar)
+ (single_quote_scalar)
+ ] @property)
[
","