aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/typescript/highlights.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm
index 0e2c28aed..2d689874c 100644
--- a/queries/typescript/highlights.scm
+++ b/queries/typescript/highlights.scm
@@ -27,6 +27,12 @@
"<" @punctuation.bracket
">" @punctuation.bracket)
+(union_type
+ "|" @punctuation.delimiter)
+
+(intersection_type
+ "&" @punctuation.delimiter)
+
(type_annotation
":" @punctuation.delimiter)
@@ -35,6 +41,9 @@
(unary_expression) @punctuation.special
+(property_signature
+ "?" @punctuation.special)
+
; Variables
(shorthand_property_identifier) @variable