mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Add additional queries for @parameter for js
This commit is contained in:
parent
1a62b97ccd
commit
5e6716e4be
1 changed files with 8 additions and 0 deletions
|
|
@ -91,6 +91,14 @@
|
||||||
(rest_parameter
|
(rest_parameter
|
||||||
(identifier) @parameter))
|
(identifier) @parameter))
|
||||||
|
|
||||||
|
(variable_declarator
|
||||||
|
value: (arrow_function
|
||||||
|
parameter: (identifier) @parameter))
|
||||||
|
|
||||||
|
(formal_parameters
|
||||||
|
(object_pattern
|
||||||
|
(shorthand_property_identifier) @parameter))
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
;----------
|
;----------
|
||||||
(namespace_import
|
(namespace_import
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue