mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(locals): js add arrow function parameter as definition
This commit is contained in:
parent
439b58d92c
commit
fd356a2670
1 changed files with 4 additions and 0 deletions
|
|
@ -25,6 +25,10 @@
|
|||
(assignment_pattern
|
||||
(shorthand_property_identifier) @definition.parameter))
|
||||
|
||||
; x => x
|
||||
(arrow_function
|
||||
parameter: (identifier) @definition.parameter)
|
||||
|
||||
(formal_parameters
|
||||
(object_pattern
|
||||
(shorthand_property_identifier) @definition.parameter))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue