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.

typescript: Highlight `is` predicate keyword & `...` spread pattern (#17787)

Albert Marashi3aeea93847ac
diff --git a/crates/languages/src/tsx/highlights.scm b/crates/languages/src/tsx/highlights.scm
index 296a66c10a6..bbdd83bb4d4 100644
--- a/crates/languages/src/tsx/highlights.scm
+++ b/crates/languages/src/tsx/highlights.scm
@@ -181,6 +181,7 @@
"import"
"in"
"instanceof"
+ "is"
"let"
"new"
"of"
diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scm
index 19def8d93dd..eedcf79aeda 100644
--- a/crates/languages/src/typescript/highlights.scm
+++ b/crates/languages/src/typescript/highlights.scm
@@ -100,6 +100,7 @@
] @punctuation.delimiter
[
+ "..."
"-"
"--"
"-="
@@ -181,6 +182,7 @@
"import"
"in"
"instanceof"
+ "is"
"let"
"new"
"of"