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.

Highlight `super` and `this` as keywords in JS/TS/TSX (#25135)

Ben Kunkleebbc6a975215
diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scm
index 8ae208d4cde..711e2e5d487 100644
--- a/crates/languages/src/javascript/highlights.scm
+++ b/crates/languages/src/javascript/highlights.scm
@@ -59,8 +59,8 @@
; Literals
-(this) @variable.special
-(super) @variable.special
+(this) @keyword
+(super) @keyword
[
(null)
diff --git a/crates/languages/src/tsx/highlights.scm b/crates/languages/src/tsx/highlights.scm
index 26cf5c207b2..323f58c5577 100644
--- a/crates/languages/src/tsx/highlights.scm
+++ b/crates/languages/src/tsx/highlights.scm
@@ -62,8 +62,8 @@
; Literals
-(this) @variable.special
-(super) @variable.special
+(this) @keyword
+(super) @keyword
[
(null)
diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scm
index f4104a504de..091ddfed9d0 100644
--- a/crates/languages/src/typescript/highlights.scm
+++ b/crates/languages/src/typescript/highlights.scm
@@ -77,8 +77,8 @@
; Literals
-(this) @variable.special
-(super) @variable.special
+(this) @keyword
+(super) @keyword
[
(null)