diff options
| author | rockerBOO <rockerboo@gmail.com> | 2020-11-14 18:44:55 -0500 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2020-11-15 10:24:46 +0100 |
| commit | d8d2eefa01226248e1e17580931782edda3b5894 (patch) | |
| tree | 33227ffaf020386e22582fe053ec02551be1ba46 | |
| parent | 1f98c2e92810f02afcd7ce981beac5142e34ea87 (diff) | |
Add additional punctuation, variable descriptors for Typescript
| -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) |
