crates/zed/src/languages/javascript/highlights.scm 🔗
@@ -72,7 +72,7 @@
(template_string)
] @string
-(regex) @string.special
+(regex) @string.regex
(number) @number
; Tokens
Nate Butler created
crates/zed/src/languages/javascript/highlights.scm | 2 +-
crates/zed/src/languages/racket/highlights.scm | 2 +-
crates/zed/src/languages/ruby/highlights.scm | 2 +-
crates/zed/src/languages/typescript/highlights.scm | 2 +-
styles/src/themes/common/colorScheme.ts | 3 ---
styles/src/themes/common/syntax.ts | 3 ---
6 files changed, 4 insertions(+), 10 deletions(-)
@@ -72,7 +72,7 @@
(template_string)
] @string
-(regex) @string.special
+(regex) @string.regex
(number) @number
; Tokens
@@ -3,7 +3,7 @@
[(string)
(here_string)
(byte_string)] @string
-(regex) @string.special
+(regex) @string.regex
(escape_sequence) @escape
[(comment)
@@ -95,7 +95,7 @@
(bare_symbol)
] @string.special.symbol
-(regex) @string.special.regex
+(regex) @string.regex
(escape_sequence) @escape
[
@@ -72,7 +72,7 @@
(template_string)
] @string
-(regex) @string.special
+(regex) @string.regex
(number) @number
; Tokens
@@ -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
@@ -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,
},