mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
Add additional punctuation, variable descriptors for Typescript
This commit is contained in:
parent
1f98c2e928
commit
d8d2eefa01
1 changed files with 16 additions and 0 deletions
|
|
@ -15,14 +15,30 @@
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
(readonly) @keyword
|
(readonly) @keyword
|
||||||
|
|
||||||
|
; types
|
||||||
|
|
||||||
(type_identifier) @type
|
(type_identifier) @type
|
||||||
(predefined_type) @type.builtin
|
(predefined_type) @type.builtin
|
||||||
|
|
||||||
|
; punctuation
|
||||||
|
|
||||||
(type_arguments
|
(type_arguments
|
||||||
"<" @punctuation.bracket
|
"<" @punctuation.bracket
|
||||||
">" @punctuation.bracket)
|
">" @punctuation.bracket)
|
||||||
|
|
||||||
|
(type_annotation
|
||||||
|
":" @punctuation.delimiter)
|
||||||
|
|
||||||
|
(pair
|
||||||
|
":" @punctuation.delimiter)
|
||||||
|
|
||||||
|
(unary_expression) @punctuation.special
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
|
|
||||||
|
(shorthand_property_identifier) @variable
|
||||||
|
(undefined) @variable.builtin
|
||||||
|
|
||||||
(required_parameter (identifier) @parameter)
|
(required_parameter (identifier) @parameter)
|
||||||
(optional_parameter (identifier) @parameter)
|
(optional_parameter (identifier) @parameter)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue