mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Add type delimiters | &, Add optional type ?
This commit is contained in:
parent
d8d2eefa01
commit
7566d397d4
1 changed files with 9 additions and 0 deletions
|
|
@ -27,6 +27,12 @@
|
|||
"<" @punctuation.bracket
|
||||
">" @punctuation.bracket)
|
||||
|
||||
(union_type
|
||||
"|" @punctuation.delimiter)
|
||||
|
||||
(intersection_type
|
||||
"&" @punctuation.delimiter)
|
||||
|
||||
(type_annotation
|
||||
":" @punctuation.delimiter)
|
||||
|
||||
|
|
@ -35,6 +41,9 @@
|
|||
|
||||
(unary_expression) @punctuation.special
|
||||
|
||||
(property_signature
|
||||
"?" @punctuation.special)
|
||||
|
||||
; Variables
|
||||
|
||||
(shorthand_property_identifier) @variable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue