Browse Source

comment

pull/13/head
Roberto Ierusalimschy 7 years ago
parent
commit
b77f792b23
  1. 4
      lparser.c

4
lparser.c

@ -1,5 +1,5 @@
/*
** $Id: lparser.c,v 2.161 2017/06/29 15:06:44 roberto Exp roberto $
** $Id: lparser.c,v 2.162 2017/06/29 15:38:41 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
@ -1411,7 +1411,7 @@ static void test_then_block (LexState *ls, int *escapelist) {
luaK_goiffalse(ls->fs, &v); /* will jump to label if condition is true */
enterblock(fs, &bl, 0); /* must enter block before 'goto' */
gotostat(ls, v.t); /* handle goto/break */
while (testnext(ls, ';')) {} /* skip colons */
while (testnext(ls, ';')) {} /* skip semicolons */
if (block_follow(ls, 0)) { /* 'goto' is the entire block? */
leaveblock(fs);
return; /* and that is it */

Loading…
Cancel
Save