mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
properly bind function names to the parent scope
This commit is contained in:
parent
6ece0ca4e6
commit
a0c0269cbf
1 changed files with 4 additions and 2 deletions
|
|
@ -14,8 +14,10 @@
|
|||
"while" "if" "when" "do" "collect" "icollect" "accumulate")
|
||||
)
|
||||
|
||||
(fn name: (symbol) @definition.function)
|
||||
(lambda name: (symbol) @definition.function)
|
||||
(fn name: (symbol) @definition.function
|
||||
(#set! definition.function.scope "parent"))
|
||||
(lambda name: (symbol) @definition.function
|
||||
(#set! definition.function.scope "parent"))
|
||||
|
||||
; TODO: use @definition.parameter for parameters
|
||||
(binding (symbol) @definition.var)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue