diff --git a/crates/zed/src/languages/javascript/highlights.scm b/crates/zed/src/languages/javascript/highlights.scm index bd1986b6b3aa9d00c3596f4b8e927c7961078219..dca0b289498ded9bcadf33a42a21789a865949ec 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 ; Tokens diff --git a/crates/zed/src/languages/racket/highlights.scm b/crates/zed/src/languages/racket/highlights.scm index 9eeeb1d4eaf7c7acafb7c68e6b51555accdc7049..42b85774c93cbaa9591c6f1db97f4635ec6f4661 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.scm index 0dfd725cd8eabd85b30589924119d5cd45eb0158..7ed6b3ab3d198758abc4f881deaadd7fa7b1a9b8 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.scm index 43df33d158163c5a5b50a9e7e8d91e11f23268b2..8149ced0ddadcef3c12f2f80fbba2f716679ddff 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 ; Tokens diff --git a/styles/src/themes/common/colorScheme.ts b/styles/src/themes/common/colorScheme.ts index d4e63376b968c576b0d5b441e48fd1a7fe2ba7ed..ad2de9b62d90843608a790bf6ed2c4f4cabb7b74 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 expressions diff --git a/styles/src/themes/common/syntax.ts b/styles/src/themes/common/syntax.ts index ada4c50b57231b1c722166df5eb52f8072df1291..9c0b61447e90c864d81c89d27cf8dcb86ea0497e 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, },