Skip to content

Commit a504c5e

Browse files
committed
lua 5.3.4 bugfix
1 parent 6485041 commit a504c5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

3rd/lua/lparser.c

+1
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,7 @@ static void test_then_block (LexState *ls, int *escapelist) {
13951395
luaK_goiffalse(ls->fs, &v); /* will jump to label if condition is true */
13961396
enterblock(fs, &bl, 0); /* must enter block before 'goto' */
13971397
gotostat(ls, v.t); /* handle goto/break */
1398+
while (testnext(ls, ';')) {} /* skip colons */
13981399
if (block_follow(ls, 0)) { /* 'goto' is the entire block? */
13991400
leaveblock(fs);
14001401
return; /* and that is it */

0 commit comments

Comments
 (0)