Unify regex highlight style under @string.regex
This commit is contained in:
parent
794e6e22a6
commit
8c51a62a8d
6 changed files with 4 additions and 10 deletions
|
@ -72,7 +72,7 @@
|
||||||
(template_string)
|
(template_string)
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
(regex) @string.special
|
(regex) @string.regex
|
||||||
(number) @number
|
(number) @number
|
||||||
|
|
||||||
; Tokens
|
; Tokens
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
[(string)
|
[(string)
|
||||||
(here_string)
|
(here_string)
|
||||||
(byte_string)] @string
|
(byte_string)] @string
|
||||||
(regex) @string.special
|
(regex) @string.regex
|
||||||
(escape_sequence) @escape
|
(escape_sequence) @escape
|
||||||
|
|
||||||
[(comment)
|
[(comment)
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
(bare_symbol)
|
(bare_symbol)
|
||||||
] @string.special.symbol
|
] @string.special.symbol
|
||||||
|
|
||||||
(regex) @string.special.regex
|
(regex) @string.regex
|
||||||
(escape_sequence) @escape
|
(escape_sequence) @escape
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
(template_string)
|
(template_string)
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
(regex) @string.special
|
(regex) @string.regex
|
||||||
(number) @number
|
(number) @number
|
||||||
|
|
||||||
; Tokens
|
; Tokens
|
||||||
|
|
|
@ -142,14 +142,11 @@ export interface Syntax {
|
||||||
string: SyntaxHighlightStyle
|
string: SyntaxHighlightStyle
|
||||||
// css: color_value
|
// css: color_value
|
||||||
// js: this, super
|
// js: this, super
|
||||||
// racket: regex
|
|
||||||
// toml: offset_date_time, local_date_time...
|
// toml: offset_date_time, local_date_time...
|
||||||
"string.special": SyntaxHighlightStyle
|
"string.special": SyntaxHighlightStyle
|
||||||
// elixir: atom, quoted_atom, keyword, quoted_keyword
|
// elixir: atom, quoted_atom, keyword, quoted_keyword
|
||||||
// ruby: simple_symbol, delimited_symbol...
|
// ruby: simple_symbol, delimited_symbol...
|
||||||
"string.special.symbol": SyntaxHighlightStyle
|
"string.special.symbol": SyntaxHighlightStyle
|
||||||
// ruby: Regular expression
|
|
||||||
"string.special.regex": SyntaxHighlightStyle
|
|
||||||
// elixir, python, yaml...: escape_sequence
|
// elixir, python, yaml...: escape_sequence
|
||||||
"string.escape": SyntaxHighlightStyle
|
"string.escape": SyntaxHighlightStyle
|
||||||
// Regular expressions
|
// Regular expressions
|
||||||
|
|
|
@ -102,9 +102,6 @@ function buildDefaultSyntax(colorScheme: ColorScheme): Syntax {
|
||||||
"string.special.symbol": {
|
"string.special.symbol": {
|
||||||
color: color.string,
|
color: color.string,
|
||||||
},
|
},
|
||||||
"string.special.regex": {
|
|
||||||
color: color.string,
|
|
||||||
},
|
|
||||||
"string.escape": {
|
"string.escape": {
|
||||||
color: color.comment,
|
color: color.comment,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue