mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
]
|
||||
|
||||
|
||||
(program) @scope
|
||||
((if_statement) @scope)
|
||||
((for_in_statement) @scope)
|
||||
((repeat_statement) @scope)
|
||||
((while_statement) @scope)
|
||||
[
|
||||
(program)
|
||||
(if_statement)
|
||||
(for_in_statement)
|
||||
(repeat_statement)
|
||||
(while_statement)
|
||||
(do_statement)
|
||||
] @scope
|
||||
|
||||
;;; REFERENCES
|
||||
((identifier) @reference)
|
||||
((property_identifier) @reference)
|
||||
[
|
||||
(identifier)
|
||||
(property_identifier)
|
||||
] @reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue