aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lparser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lparser.c b/lparser.c
index 17dd2983..bb4ea097 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.136 2001/02/20 18:28:11 roberto Exp roberto $ 2** $Id: lparser.c,v 1.137 2001/02/22 18:59:59 roberto Exp roberto $
3** LL(1) Parser and code generator for Lua 3** LL(1) Parser and code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1033,7 +1033,7 @@ static void breakstat (LexState *ls) {
1033} 1033}
1034 1034
1035 1035
1036static int stat (LexState *ls) { 1036static int statement (LexState *ls) {
1037 int line = ls->linenumber; /* may be needed for error messages */ 1037 int line = ls->linenumber; /* may be needed for error messages */
1038 switch (ls->t.token) { 1038 switch (ls->t.token) {
1039 case TK_IF: { /* stat -> ifstat */ 1039 case TK_IF: { /* stat -> ifstat */
@@ -1125,7 +1125,7 @@ static void chunk (LexState *ls) {
1125 /* chunk -> { stat [`;'] } */ 1125 /* chunk -> { stat [`;'] } */
1126 int islast = 0; 1126 int islast = 0;
1127 while (!islast && !block_follow(ls->t.token)) { 1127 while (!islast && !block_follow(ls->t.token)) {
1128 islast = stat(ls); 1128 islast = statement(ls);
1129 optional(ls, ';'); 1129 optional(ls, ';');
1130 lua_assert(ls->fs->stacklevel == ls->fs->nactloc); 1130 lua_assert(ls->fs->stacklevel == ls->fs->nactloc);
1131 } 1131 }