From Lua 5.2: 'break' allowed anywhere.

Needs -DLUAJIT_ENABLE_LUA52COMPAT.
This commit is contained in:
Mike Pall 2012-09-19 16:30:46 +02:00
parent c687d01c46
commit 1afcea1435

View File

@ -2666,7 +2666,7 @@ static int parse_stmt(LexState *ls)
case TK_break:
lj_lex_next(ls);
parse_break(ls);
return 1; /* Must be last. */
return !LJ_52; /* Must be last in Lua 5.1. */
#if LJ_52
case ';':
lj_lex_next(ls);