Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Improve TS and JSON syntax highlighting (#9302)
Robin Pfäffleee260910cd9e
diff --git a/crates/languages/src/json/highlights.scm b/crates/languages/src/json/highlights.scmindex b5c64e96344..12bde13e518 100644--- a/crates/languages/src/json/highlights.scm+++ b/crates/languages/src/json/highlights.scm@@ -3,7 +3,7 @@(string) @string(pair- key: (string) @property)+ key: (string) @property.json_key)(number) @numberdiff --git a/crates/languages/src/tsx/highlights.scm b/crates/languages/src/tsx/highlights.scmindex 93011b1f107..f2ff2e8ed3c 100644--- a/crates/languages/src/tsx/highlights.scm+++ b/crates/languages/src/tsx/highlights.scm@@ -78,6 +78,7 @@[(string)(template_string)+ (template_literal_type)] @string(escape_sequence) @string.escape@@ -93,6 +94,7 @@"."","":"+ "?"] @punctuation.delimiter[@@ -200,6 +202,10 @@"${" @punctuation.special"}" @punctuation.special) @embedded+(template_type+ "${" @punctuation.special+ "}" @punctuation.special) @embedded+(type_arguments"<" @punctuation.bracket">" @punctuation.bracket)diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scmindex 9c413f0041b..72694b1adf5 100644--- a/crates/languages/src/typescript/highlights.scm+++ b/crates/languages/src/typescript/highlights.scm@@ -78,6 +78,7 @@[(string)(template_string)+ (template_literal_type)] @string(escape_sequence) @string.escape@@ -93,6 +94,7 @@"."","":"+ "?"] @punctuation.delimiter[@@ -200,6 +202,10 @@"${" @punctuation.special"}" @punctuation.special) @embedded+(template_type+ "${" @punctuation.special+ "}" @punctuation.special) @embedded+(type_arguments"<" @punctuation.bracket">" @punctuation.bracket)