mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -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
|
||||||
">" @punctuation.bracket)
|
">" @punctuation.bracket)
|
||||||
|
|
||||||
|
(union_type
|
||||||
|
"|" @punctuation.delimiter)
|
||||||
|
|
||||||
|
(intersection_type
|
||||||
|
"&" @punctuation.delimiter)
|
||||||
|
|
||||||
(type_annotation
|
(type_annotation
|
||||||
":" @punctuation.delimiter)
|
":" @punctuation.delimiter)
|
||||||
|
|
||||||
|
|
@ -35,6 +41,9 @@
|
||||||
|
|
||||||
(unary_expression) @punctuation.special
|
(unary_expression) @punctuation.special
|
||||||
|
|
||||||
|
(property_signature
|
||||||
|
"?" @punctuation.special)
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
|
|
||||||
(shorthand_property_identifier) @variable
|
(shorthand_property_identifier) @variable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue