aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-08 17:48:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-08 17:48:55 -0300
commita7c1390ffaf0edfe839d075df484f2b81b3151bf (patch)
tree2f6aba9befa25b7e3c03d85d2098fb5c98d26b99 /lparser.c
parent0802a9df9e9326c5e61f0d6b69685c2c253de5f2 (diff)
downloadlua-a7c1390ffaf0edfe839d075df484f2b81b3151bf.tar.gz
lua-a7c1390ffaf0edfe839d075df484f2b81b3151bf.tar.bz2
lua-a7c1390ffaf0edfe839d075df484f2b81b3151bf.zip
syntax "function foo (...)" can be nested
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lparser.c b/lparser.c
index 63af8326..afa7635b 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.103 2000/08/08 18:26:05 roberto Exp roberto $ 2** $Id: lparser.c,v 1.104 2000/08/08 20:42:07 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*/
@@ -961,8 +961,6 @@ static void funcstat (LexState *ls, int line) {
961 /* funcstat -> FUNCTION funcname body */ 961 /* funcstat -> FUNCTION funcname body */
962 int needself; 962 int needself;
963 expdesc v; 963 expdesc v;
964 check_condition(ls, (ls->fs->prev == NULL),
965 "cannot nest this kind of function declaration");
966 next(ls); /* skip FUNCTION */ 964 next(ls); /* skip FUNCTION */
967 needself = funcname(ls, &v); 965 needself = funcname(ls, &v);
968 body(ls, needself, line); 966 body(ls, needself, line);