From 9ef641ce81b81e6b0e65f15bc3e5d3abc613b9d4 Mon Sep 17 00:00:00 2001 From: Dan Wood Date: Fri, 8 Aug 2025 03:58:26 +0200 Subject: [PATCH] Add spread operator to the @operator list for ECMAScript languages (#35360) Previously, this was the one thing that could not be styled properly in ecmascript languages in the zed config, because it was not able to be targeted. Now, it is added alongside other operators. This has been tested and works as expected. Release Notes: - N/A --- crates/languages/src/javascript/highlights.scm | 1 + crates/languages/src/tsx/highlights.scm | 1 + crates/languages/src/typescript/highlights.scm | 1 + 3 files changed, 3 insertions(+) diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scm index 73cb1a5e45..9d5ebbaf71 100644 --- a/crates/languages/src/javascript/highlights.scm +++ b/crates/languages/src/javascript/highlights.scm @@ -146,6 +146,7 @@ "&&=" "||=" "??=" + "..." ] @operator (regex "/" @string.regex) diff --git a/crates/languages/src/tsx/highlights.scm b/crates/languages/src/tsx/highlights.scm index e2837c61fd..5e2fbbf63a 100644 --- a/crates/languages/src/tsx/highlights.scm +++ b/crates/languages/src/tsx/highlights.scm @@ -146,6 +146,7 @@ "&&=" "||=" "??=" + "..." ] @operator (regex "/" @string.regex) diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scm index 486e5a7684..af37ef6415 100644 --- a/crates/languages/src/typescript/highlights.scm +++ b/crates/languages/src/typescript/highlights.scm @@ -167,6 +167,7 @@ "&&=" "||=" "??=" + "..." ] @operator (regex "/" @string.regex)