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 spread operator to the @operator list for ECMAScript languages (#35360)

Dan Wood0dd480d475f7
diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scm
index 73cb1a5e45b..9d5ebbaf711 100644
--- a/crates/languages/src/javascript/highlights.scm
+++ b/crates/languages/src/javascript/highlights.scm
@@ -146,6 +146,7 @@
"&&="
"||="
"??="
+ "..."
] @operator
(regex "/" @string.regex)
diff --git a/crates/languages/src/tsx/highlights.scm b/crates/languages/src/tsx/highlights.scm
index e2837c61fda..5e2fbbf63ac 100644
--- a/crates/languages/src/tsx/highlights.scm
+++ b/crates/languages/src/tsx/highlights.scm
@@ -146,6 +146,7 @@
"&&="
"||="
"??="
+ "..."
] @operator
(regex "/" @string.regex)
diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scm
index 486e5a76845..af37ef6415b 100644
--- a/crates/languages/src/typescript/highlights.scm
+++ b/crates/languages/src/typescript/highlights.scm
@@ -167,6 +167,7 @@
"&&="
"||="
"??="
+ "..."
] @operator
(regex "/" @string.regex)