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-14 20:58:17 -06:00
committed by GitHub
parent 27bcb7f179
commit ee260910cd
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
(string) @string
(pair
key: (string) @property)
key: (string) @property.json_key)
(number) @number
+6
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)
@@ -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)