lua

A copy of the Lua development repository
Log | Files | Refs | README

commit b77f792b23fa4fe12918659d61961b2a50d151d0
parent 4053eae9ebbf14963a388ba864454f9e4ec16663
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Sat, 12 Aug 2017 10:11:54 -0300

comment

Diffstat:
Mlparser.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lparser.c b/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 */