crates/languages/src/json/highlights.scm π
@@ -3,7 +3,7 @@
(string) @string
(pair
- key: (string) @property)
+ key: (string) @property.json_key)
(number) @number
Robin PfΓ€ffle created
Successor to #7767.
Release Notes:
- Improved syntax highlighting for TS/TSX and JSON.
crates/languages/src/json/highlights.scm | 2 +-
crates/languages/src/tsx/highlights.scm | 6 ++++++
crates/languages/src/typescript/highlights.scm | 6 ++++++
3 files changed, 13 insertions(+), 1 deletion(-)
@@ -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)