mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
fix(lua): correctly handle do_statement in locals
This commit is contained in:
parent
b8a7f0ea38
commit
12181e236e
1 changed files with 12 additions and 8 deletions
|
|
@ -35,13 +35,17 @@
|
||||||
(function_definition) @scope
|
(function_definition) @scope
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[
|
||||||
(program) @scope
|
(program)
|
||||||
((if_statement) @scope)
|
(if_statement)
|
||||||
((for_in_statement) @scope)
|
(for_in_statement)
|
||||||
((repeat_statement) @scope)
|
(repeat_statement)
|
||||||
((while_statement) @scope)
|
(while_statement)
|
||||||
|
(do_statement)
|
||||||
|
] @scope
|
||||||
|
|
||||||
;;; REFERENCES
|
;;; REFERENCES
|
||||||
((identifier) @reference)
|
[
|
||||||
((property_identifier) @reference)
|
(identifier)
|
||||||
|
(property_identifier)
|
||||||
|
] @reference
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue