History

Lua 4.0.1

Lua Team committed 24 years ago

Commit c2bb7181 parent e22497f11 files · +141 −21Browse files

Showing the changes to src/lparser.c (1 of 11 files). Show all

Unified · Split

src/lparser.c+2−2
@@ -1,5 +1,5 @@
11 /*
2−** $Id: lparser.c,v 1.116 2000/10/27 11:39:52 roberto Exp $
2+** $Id: lparser.c,v 1.117 2000/11/29 11:57:42 roberto Exp $
33 ** LL(1) Parser and code generator for Lua
44 ** See Copyright Notice in lua.h
55 */
@@ -997,7 +997,7 @@ static void retstat (LexState *ls) { · 991 unmodified lines
997997 /* stat -> RETURN explist */
998998 FuncState *fs = ls->fs;
999999 next(ls); /* skip RETURN */
1000− if (!block_follow(ls->t.token))
1000+ if (!block_follow(ls->t.token) && ls->t.token != ';')
10011001 explist1(ls); /* optional return values */
10021002 luaK_code1(fs, OP_RETURN, ls->fs->nactloc);
10031003 fs->stacklevel = fs->nactloc; /* removes all temp values */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t