summaryrefslogtreecommitdiff
path: root/queries/typescript/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/typescript/highlights.scm')
-rw-r--r--queries/typescript/highlights.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm
index 26725f82..fac349c6 100644
--- a/queries/typescript/highlights.scm
+++ b/queries/typescript/highlights.scm
@@ -26,7 +26,7 @@
((import_specifier
name: (identifier) @type)))))
-; punctuation
+;; punctuation
(type_arguments
"<" @punctuation.bracket
@@ -44,6 +44,8 @@
(pair
":" @punctuation.delimiter)
+"?." @punctuation.delimiter
+
(property_signature "?" @punctuation.special)
(optional_parameter "?" @punctuation.special)