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: Remove duplicate keywords in JS syntax highlighting (#48460)

Gaauwe Rombouts6e5e6cf8a57d
diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scm
index 1a29f0134cf..938ee78e7fc 100644
--- a/crates/languages/src/javascript/highlights.scm
+++ b/crates/languages/src/javascript/highlights.scm
@@ -243,18 +243,29 @@
)
[
+ "abstract"
"as"
"async"
"await"
"debugger"
+ "declare"
"default"
"delete"
"extends"
"get"
+ "implements"
"in"
"instanceof"
+ "keyof"
+ "module"
+ "namespace"
"new"
"of"
+ "override"
+ "private"
+ "protected"
+ "public"
+ "readonly"
"set"
"static"
"target"
@@ -270,6 +281,9 @@
"var"
"function"
"class"
+ "enum"
+ "interface"
+ "type"
] @keyword.declaration
[
@@ -308,25 +322,6 @@
(decorator "@" @punctuation.special)
-; Keywords
-
-[ "abstract"
- "declare"
- "enum"
- "export"
- "implements"
- "interface"
- "keyof"
- "module"
- "namespace"
- "private"
- "protected"
- "public"
- "type"
- "readonly"
- "override"
-] @keyword
-
; JSX elements
(jsx_opening_element
[