From d8d2eefa01226248e1e17580931782edda3b5894 Mon Sep 17 00:00:00 2001 From: rockerBOO Date: Sat, 14 Nov 2020 18:44:55 -0500 Subject: Add additional punctuation, variable descriptors for Typescript --- queries/typescript/highlights.scm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm index 87272f98f..0e2c28aed 100644 --- a/queries/typescript/highlights.scm +++ b/queries/typescript/highlights.scm @@ -15,14 +15,30 @@ ] @keyword (readonly) @keyword + +; types + (type_identifier) @type (predefined_type) @type.builtin +; punctuation + (type_arguments "<" @punctuation.bracket ">" @punctuation.bracket) +(type_annotation + ":" @punctuation.delimiter) + +(pair + ":" @punctuation.delimiter) + +(unary_expression) @punctuation.special + ; Variables +(shorthand_property_identifier) @variable +(undefined) @variable.builtin + (required_parameter (identifier) @parameter) (optional_parameter (identifier) @parameter) -- cgit v1.2.3-70-g09d2