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.

Revert "Highlight `super` and `this` as keywords in JS/TS/TSX" (#26342)

Ben Kunkle6de3ac3e17a4
diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scm
index f46db408e7d..1b2e047a1e6 100644
--- a/crates/languages/src/javascript/highlights.scm
+++ b/crates/languages/src/javascript/highlights.scm
@@ -62,8 +62,8 @@
; Literals
-(this) @keyword
-(super) @keyword
+(this) @variable.special
+(super) @variable.special
[
(null)
diff --git a/crates/languages/src/tsx/highlights.scm b/crates/languages/src/tsx/highlights.scm
index 5b83ec903c8..6e1ced93ccd 100644
--- a/crates/languages/src/tsx/highlights.scm
+++ b/crates/languages/src/tsx/highlights.scm
@@ -62,8 +62,8 @@
; Literals
-(this) @keyword
-(super) @keyword
+(this) @variable.special
+(super) @variable.special
[
(null)
diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scm
index 502957c93bc..b8399978638 100644
--- a/crates/languages/src/typescript/highlights.scm
+++ b/crates/languages/src/typescript/highlights.scm
@@ -80,8 +80,8 @@
; Literals
-(this) @keyword
-(super) @keyword
+(this) @variable.special
+(super) @variable.special
[
(null)