[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: for without end gives `while' error msg
- From: "Mauro Vezzosi"<mvezzosi@...>
- Date: Sat, 24 Jun 2000 15:44:02 +0200
If a for statement haven't the corresponding end, Lua gives the
error "... to close 'while' ..." insteat of "... to close 'for' ...".
For example:
for i = 1, 2 do (without end)
error: `end' expected (to close `while' at line 1);
I fixed it changing TK_WHILE with TK_FOR in module lparser.c->function
forstat()->statement check_END(ls, TK_WHILE, line).
Bye
Mauro