fix(lua): correctly handle do_statement in locals

This commit is contained in:
Thomas Vigouroux 2021-01-27 09:32:45 +01:00
parent b8a7f0ea38
commit 12181e236e

View file

@ -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