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.

Add escape string highlights to JSON and JSONC files (#18138)

狐狸99bef273009a
diff --git a/crates/languages/src/json/highlights.scm b/crates/languages/src/json/highlights.scm
index 71168051094..8cf7a6d20dc 100644
--- a/crates/languages/src/json/highlights.scm
+++ b/crates/languages/src/json/highlights.scm
@@ -1,6 +1,7 @@
(comment) @comment
(string) @string
+(escape_sequence) @string.escape
(pair
key: (string) @property.json_key)
diff --git a/crates/languages/src/jsonc/highlights.scm b/crates/languages/src/jsonc/highlights.scm
index 71168051094..8cf7a6d20dc 100644
--- a/crates/languages/src/jsonc/highlights.scm
+++ b/crates/languages/src/jsonc/highlights.scm
@@ -1,6 +1,7 @@
(comment) @comment
(string) @string
+(escape_sequence) @string.escape
(pair
key: (string) @property.json_key)