diff options
| -rw-r--r-- | queries/typescript/highlights.scm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm index 87272f98..0e2c28ae 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) |
