From a7c1390ffaf0edfe839d075df484f2b81b3151bf Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 8 Aug 2000 17:48:55 -0300 Subject: [PATCH] syntax "function foo (...)" can be nested --- lparser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lparser.c b/lparser.c index 63af8326..afa7635b 100644 --- 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);