Improve TS and JSON syntax highlighting (#9302)
Successor to #7767. Release Notes: - Improved syntax highlighting for TS/TSX and JSON.
This commit is contained in:
parent
27bcb7f179
commit
ee260910cd
3 changed files with 13 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
(string) @string
|
||||
|
||||
(pair
|
||||
key: (string) @property)
|
||||
key: (string) @property.json_key)
|
||||
|
||||
(number) @number
|
||||
|
||||
|
|
|
@ -78,6 +78,7 @@
|
|||
[
|
||||
(string)
|
||||
(template_string)
|
||||
(template_literal_type)
|
||||
] @string
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
@ -93,6 +94,7 @@
|
|||
"."
|
||||
","
|
||||
":"
|
||||
"?"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
|
@ -200,6 +202,10 @@
|
|||
"${" @punctuation.special
|
||||
"}" @punctuation.special) @embedded
|
||||
|
||||
(template_type
|
||||
"${" @punctuation.special
|
||||
"}" @punctuation.special) @embedded
|
||||
|
||||
(type_arguments
|
||||
"<" @punctuation.bracket
|
||||
">" @punctuation.bracket)
|
||||
|
|
|
@ -78,6 +78,7 @@
|
|||
[
|
||||
(string)
|
||||
(template_string)
|
||||
(template_literal_type)
|
||||
] @string
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
@ -93,6 +94,7 @@
|
|||
"."
|
||||
","
|
||||
":"
|
||||
"?"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
|
@ -200,6 +202,10 @@
|
|||
"${" @punctuation.special
|
||||
"}" @punctuation.special) @embedded
|
||||
|
||||
(template_type
|
||||
"${" @punctuation.special
|
||||
"}" @punctuation.special) @embedded
|
||||
|
||||
(type_arguments
|
||||
"<" @punctuation.bracket
|
||||
">" @punctuation.bracket)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue