Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Unify regex highlight style under `@string.regex`
Nate Butler8c51a62a8d37
diff --git a/crates/zed/src/languages/javascript/highlights.scm b/crates/zed/src/languages/javascript/highlights.scmindex bd1986b6b3a..dca0b289498 100644--- a/crates/zed/src/languages/javascript/highlights.scm+++ b/crates/zed/src/languages/javascript/highlights.scm@@ -72,7 +72,7 @@(template_string)] @string-(regex) @string.special+(regex) @string.regex(number) @number; Tokensdiff --git a/crates/zed/src/languages/racket/highlights.scm b/crates/zed/src/languages/racket/highlights.scmindex 9eeeb1d4eaf..42b85774c93 100644--- a/crates/zed/src/languages/racket/highlights.scm+++ b/crates/zed/src/languages/racket/highlights.scm@@ -3,7 +3,7 @@[(string)(here_string)(byte_string)] @string-(regex) @string.special+(regex) @string.regex(escape_sequence) @escape[(comment)diff --git a/crates/zed/src/languages/ruby/highlights.scm b/crates/zed/src/languages/ruby/highlights.scmindex 0dfd725cd8e..7ed6b3ab3d1 100644--- a/crates/zed/src/languages/ruby/highlights.scm+++ b/crates/zed/src/languages/ruby/highlights.scm@@ -95,7 +95,7 @@(bare_symbol)] @string.special.symbol-(regex) @string.special.regex+(regex) @string.regex(escape_sequence) @escape[diff --git a/crates/zed/src/languages/typescript/highlights.scm b/crates/zed/src/languages/typescript/highlights.scmindex 43df33d1581..8149ced0dda 100644--- a/crates/zed/src/languages/typescript/highlights.scm+++ b/crates/zed/src/languages/typescript/highlights.scm@@ -72,7 +72,7 @@(template_string)] @string-(regex) @string.special+(regex) @string.regex(number) @number; Tokensdiff --git a/styles/src/themes/common/colorScheme.ts b/styles/src/themes/common/colorScheme.tsindex d4e63376b96..ad2de9b62d9 100644--- a/styles/src/themes/common/colorScheme.ts+++ b/styles/src/themes/common/colorScheme.ts@@ -142,14 +142,11 @@ export interface Syntax {string: SyntaxHighlightStyle// css: color_value// js: this, super- // racket: regex// toml: offset_date_time, local_date_time..."string.special": SyntaxHighlightStyle// elixir: atom, quoted_atom, keyword, quoted_keyword// ruby: simple_symbol, delimited_symbol..."string.special.symbol": SyntaxHighlightStyle- // ruby: Regular expression- "string.special.regex": SyntaxHighlightStyle// elixir, python, yaml...: escape_sequence"string.escape": SyntaxHighlightStyle// Regular expressionsdiff --git a/styles/src/themes/common/syntax.ts b/styles/src/themes/common/syntax.tsindex ada4c50b572..9c0b61447e9 100644--- a/styles/src/themes/common/syntax.ts+++ b/styles/src/themes/common/syntax.ts@@ -102,9 +102,6 @@ function buildDefaultSyntax(colorScheme: ColorScheme): Syntax {"string.special.symbol": {color: color.string,},- "string.special.regex": {- color: color.string,- },"string.escape": {color: color.comment,},