mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -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
|
||||
|
||||
(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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue