lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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).