Browse Source

syntax "function foo (...)" can be nested

v5-2
Roberto Ierusalimschy 25 years ago
parent
commit
a7c1390ffa
  1. 4
      lparser.c

4
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);

Loading…
Cancel
Save