From 7566d397d4d3c10b64e2d4d8feaff53cf2af2005 Mon Sep 17 00:00:00 2001 From: rockerBOO Date: Sat, 14 Nov 2020 19:02:20 -0500 Subject: Add type delimiters | &, Add optional type ? --- queries/typescript/highlights.scm | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3-70-g09d2