mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(definitions): allow setting of scope
This commit is contained in:
parent
a9abe2b9b0
commit
7f7219b379
3 changed files with 70 additions and 3 deletions
|
|
@ -43,6 +43,10 @@
|
|||
(import_specifier
|
||||
(identifier) @definition.import)
|
||||
|
||||
(function_declaration
|
||||
((identifier) @definition.var)
|
||||
(#set! definition.var.scope parent))
|
||||
|
||||
; References
|
||||
;------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue