diff --git a/crates/languages/src/json/highlights.scm b/crates/languages/src/json/highlights.scm index b5c64e9634..12bde13e51 100644 --- a/crates/languages/src/json/highlights.scm +++ b/crates/languages/src/json/highlights.scm @@ -3,7 +3,7 @@ (string) @string (pair - key: (string) @property) + key: (string) @property.json_key) (number) @number diff --git a/crates/languages/src/tsx/highlights.scm b/crates/languages/src/tsx/highlights.scm index 93011b1f10..f2ff2e8ed3 100644 --- a/crates/languages/src/tsx/highlights.scm +++ b/crates/languages/src/tsx/highlights.scm @@ -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) diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scm index 9c413f0041..72694b1adf 100644 --- a/crates/languages/src/typescript/highlights.scm +++ b/crates/languages/src/typescript/highlights.scm @@ -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)