mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Capture anonymous functions assigned to variables
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/709
This commit is contained in:
parent
d3180720f1
commit
6182c2b0a6
1 changed files with 5 additions and 0 deletions
|
|
@ -29,6 +29,11 @@
|
|||
(identifier) @definition.function) @scope)
|
||||
(function_definition) @scope
|
||||
|
||||
(local_variable_declaration
|
||||
(variable_declarator
|
||||
(identifier) @definition.function)
|
||||
(function_definition) @scope)
|
||||
|
||||
(program) @scope
|
||||
((if_statement) @scope)
|
||||
((for_in_statement) @scope)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue