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:
Robin Pfäffle 2024-03-15 03:58:17 +01:00 committed by GitHub
parent 27bcb7f179
commit ee260910cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 1 deletions

View file

@ -3,7 +3,7 @@
(string) @string
(pair
key: (string) @property)
key: (string) @property.json_key)
(number) @number

View file

@ -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)

View file

@ -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)