mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -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")
|
"while" "if" "when" "do" "collect" "icollect" "accumulate")
|
||||||
)
|
)
|
||||||
|
|
||||||
(fn name: (symbol) @definition.function)
|
(fn name: (symbol) @definition.function
|
||||||
(lambda 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
|
; TODO: use @definition.parameter for parameters
|
||||||
(binding (symbol) @definition.var)
|
(binding (symbol) @definition.var)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue