Reject break statements outside loops #70
Labels
incorrect parsing
Valid Lua code fails to parse, is parsed incorrectly, or invalid Lua code is accepted
Milestone
There is a disabled expected-failure testcase in the
test/scaffolding/functions
file:Currently, it parses successfully; although it matches the basic recursive grammar, it semantically makes no sense and is rejected by all Lua implementations at compilation stage (although apparently only after the entire body is parsed). It would probably make sense to reject it here too.
The text was updated successfully, but these errors were encountered: