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 | Lua things all over the place (diff) | |
| download | nvim-treesitter-d8d2eefa01226248e1e17580931782edda3b5894.tar nvim-treesitter-d8d2eefa01226248e1e17580931782edda3b5894.tar.gz nvim-treesitter-d8d2eefa01226248e1e17580931782edda3b5894.tar.bz2 nvim-treesitter-d8d2eefa01226248e1e17580931782edda3b5894.tar.lz nvim-treesitter-d8d2eefa01226248e1e17580931782edda3b5894.tar.xz nvim-treesitter-d8d2eefa01226248e1e17580931782edda3b5894.tar.zst nvim-treesitter-d8d2eefa01226248e1e17580931782edda3b5894.zip | |
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 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) |
