Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
languages: Separate control flow keywords for JS/TS/TSX (#39801)
Alex Zeier96415e2d19df
diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scmindex ebeac7efffb..e5b84ab68df 100644--- a/crates/languages/src/javascript/highlights.scm+++ b/crates/languages/src/javascript/highlights.scm@@ -171,47 +171,52 @@"as""async""await"- "break"- "case"- "catch""class""const"- "continue""debugger""default""delete"- "do"- "else""export""extends"- "finally"- "for""from""function""get"- "if""import""in""instanceof""let""new""of"- "return""set""static"- "switch""target"- "throw"- "try""typeof""using""var""void"- "while""with"- "yield"] @keyword+[+ "break"+ "case"+ "catch"+ "continue"+ "do"+ "else"+ "finally"+ "for"+ "if"+ "return"+ "switch"+ "throw"+ "try"+ "while"+ "yield"+] @keyword.control++(switch_default "default" @keyword.control)+(template_substitution"${" @punctuation.special"}" @punctuation.special) @embeddeddiff --git a/crates/languages/src/tsx/highlights.scm b/crates/languages/src/tsx/highlights.scmindex f7cb9878315..ef12b3d7913 100644--- a/crates/languages/src/tsx/highlights.scm+++ b/crates/languages/src/tsx/highlights.scm@@ -171,25 +171,16 @@"as""async""await"- "break"- "case"- "catch""class""const"- "continue""debugger""default""delete"- "do"- "else""export""extends"- "finally"- "for""from""function""get"- "if""import""in""instanceof"@@ -197,23 +188,37 @@"let""new""of"- "return""satisfies""set""static"- "switch""target"- "throw"- "try""typeof""using""var""void"- "while""with"- "yield"] @keyword+[+ "break"+ "case"+ "catch"+ "continue"+ "do"+ "else"+ "finally"+ "for"+ "if"+ "return"+ "switch"+ "throw"+ "try"+ "while"+ "yield"+] @keyword.control++(switch_default "default" @keyword.control)+(template_substitution"${" @punctuation.special"}" @punctuation.special) @embeddeddiff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scmindex 84cbbae77d4..8a85dfea07f 100644--- a/crates/languages/src/typescript/highlights.scm+++ b/crates/languages/src/typescript/highlights.scm@@ -218,27 +218,18 @@"as""async""await"- "break"- "case"- "catch""class""const"- "continue""debugger""declare""default""delete"- "do"- "else""enum""export""extends"- "finally"- "for""from""function""get"- "if""implements""import""in"@@ -257,20 +248,34 @@"protected""public""readonly"- "return""satisfies""set""static"- "switch""target"- "throw"- "try""type""typeof""using""var""void"- "while""with"- "yield"] @keyword++[+ "break"+ "case"+ "catch"+ "continue"+ "do"+ "else"+ "finally"+ "for"+ "if"+ "return"+ "switch"+ "throw"+ "try"+ "while"+ "yield"+] @keyword.control++(switch_default "default" @keyword.control)