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.

Improve JSON syntax highlighting (#25329)

chbk5e4bdbbcde2a
diff --git a/crates/languages/src/json/highlights.scm b/crates/languages/src/json/highlights.scm
index c3186af264e..1098320ccba 100644
--- a/crates/languages/src/json/highlights.scm
+++ b/crates/languages/src/json/highlights.scm
@@ -13,9 +13,12 @@
(false)
] @boolean
+(null) @constant.builtin
+
[
- (null)
-] @constant
+ ","
+ ":"
+] @punctuation.delimiter
[
"{"
diff --git a/crates/languages/src/jsonc/highlights.scm b/crates/languages/src/jsonc/highlights.scm
index c3186af264e..1098320ccba 100644
--- a/crates/languages/src/jsonc/highlights.scm
+++ b/crates/languages/src/jsonc/highlights.scm
@@ -13,9 +13,12 @@
(false)
] @boolean
+(null) @constant.builtin
+
[
- (null)
-] @constant
+ ","
+ ":"
+] @punctuation.delimiter
[
"{"