commit a7c1390ffaf0edfe839d075df484f2b81b3151bf
parent 0802a9df9e9326c5e61f0d6b69685c2c253de5f2
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Tue, 8 Aug 2000 17:48:33 -0300
syntax "function foo (...)" can be nested
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lparser.c b/lparser.c
@@ -1,5 +1,5 @@
/*
-** $Id: lparser.c,v 1.103 2000/08/08 18:26:05 roberto Exp roberto $
+** $Id: lparser.c,v 1.104 2000/08/08 20:42:07 roberto Exp roberto $
** LL(1) Parser and code generator for Lua
** See Copyright Notice in lua.h
*/
@@ -961,8 +961,6 @@ static void funcstat (LexState *ls, int line) {
/* funcstat -> FUNCTION funcname body */
int needself;
expdesc v;
- check_condition(ls, (ls->fs->prev == NULL),
- "cannot nest this kind of function declaration");
next(ls); /* skip FUNCTION */
needself = funcname(ls, &v);
body(ls, needself, line);