mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
From Lua 5.2: 'break' allowed anywhere.
Needs -DLUAJIT_ENABLE_LUA52COMPAT.
This commit is contained in:
parent
c687d01c46
commit
1afcea1435
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user