mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -04:00
Set function scope
This commit is contained in:
parent
0aa4940f8b
commit
85791a4316
1 changed files with 3 additions and 1 deletions
|
|
@ -8,7 +8,9 @@
|
|||
(arg_name) @definition.parameter
|
||||
|
||||
(functiondef) @scope
|
||||
(function_statement (function_name) @definition.function) @scope
|
||||
((function_statement
|
||||
(function_name) @definition.function) @scope
|
||||
(#set! definition.function.scope "parent"))
|
||||
|
||||
(program) @scope
|
||||
(if_statement) @scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue