aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-08-12 10:12:21 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-08-12 10:12:21 -0300
commitb77f792b23fa4fe12918659d61961b2a50d151d0 (patch)
treec26c831dbdb562a241db31aa0fa2264f70f40aeb /lparser.c
parent4053eae9ebbf14963a388ba864454f9e4ec16663 (diff)
downloadlua-b77f792b23fa4fe12918659d61961b2a50d151d0.tar.gz
lua-b77f792b23fa4fe12918659d61961b2a50d151d0.tar.bz2
lua-b77f792b23fa4fe12918659d61961b2a50d151d0.zip
comment
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index 1a0a4e51..3df5a958 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.161 2017/06/29 15:06:44 roberto Exp roberto $ 2** $Id: lparser.c,v 2.162 2017/06/29 15:38:41 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1411,7 +1411,7 @@ static void test_then_block (LexState *ls, int *escapelist) {
1411 luaK_goiffalse(ls->fs, &v); /* will jump to label if condition is true */ 1411 luaK_goiffalse(ls->fs, &v); /* will jump to label if condition is true */
1412 enterblock(fs, &bl, 0); /* must enter block before 'goto' */ 1412 enterblock(fs, &bl, 0); /* must enter block before 'goto' */
1413 gotostat(ls, v.t); /* handle goto/break */ 1413 gotostat(ls, v.t); /* handle goto/break */
1414 while (testnext(ls, ';')) {} /* skip colons */ 1414 while (testnext(ls, ';')) {} /* skip semicolons */
1415 if (block_follow(ls, 0)) { /* 'goto' is the entire block? */ 1415 if (block_follow(ls, 0)) { /* 'goto' is the entire block? */
1416 leaveblock(fs); 1416 leaveblock(fs);
1417 return; /* and that is it */ 1417 return; /* and that is it */