mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Query: add program as scope
This commit is contained in:
parent
fcdb3eb35d
commit
f85dd99b5d
1 changed files with 3 additions and 2 deletions
|
|
@ -1,8 +1,9 @@
|
|||
(identifier) @reference
|
||||
|
||||
(program) @scope
|
||||
(program (named_node) @scope)
|
||||
(program (anonymous_node) @scope)
|
||||
|
||||
(identifier) @reference
|
||||
|
||||
(named_node
|
||||
(capture) @definition.var)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue