mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
add destructuring variations
This commit is contained in:
parent
9ea95e51fc
commit
040d525946
1 changed files with 17 additions and 0 deletions
|
|
@ -91,6 +91,23 @@
|
|||
(rest_parameter
|
||||
(identifier) @parameter))
|
||||
|
||||
; ({ a }) => null
|
||||
(formal_parameters
|
||||
(object_pattern
|
||||
(shorthand_property_identifier) @parameter))
|
||||
|
||||
; ({ a: b }) => null
|
||||
(formal_parameters
|
||||
(object_pattern
|
||||
(pair
|
||||
value: (identifier) @parameter)))
|
||||
|
||||
; ([ a ]) => null
|
||||
(formal_parameters
|
||||
(array_pattern
|
||||
(identifier) @parameter))
|
||||
|
||||
; ( a ) => null
|
||||
(variable_declarator
|
||||
value: (arrow_function
|
||||
parameter: (identifier) @parameter))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue