lua

A copy of the Lua development repository
Log | Files | Refs | README

commit d3902cfa81021bca0a8c30b3ad79a1e2367f6621
parent b5b230d95cdf0b7dbe94ec1a5a8433f93ac2de17
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue,  8 Mar 2005 15:16:23 -0300

entries `{[...] = ...}' need space too.

Diffstat:
Mlparser.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lparser.c b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 2.14 2005/03/07 16:58:27 roberto Exp roberto $ +** $Id: lparser.c,v 2.15 2005/03/08 18:00:16 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -460,11 +460,11 @@ static void recfield (LexState *ls, struct ConsControl *cc) { expdesc key, val; if (ls->t.token == TK_NAME) { luaY_checklimit(fs, cc->nh, MAX_INT, "items in a constructor"); - cc->nh++; checkname(ls, &key); } else /* ls->t.token == '[' */ yindex(ls, &key); + cc->nh++; checknext(ls, '='); luaK_exp2RK(fs, &key); expr(ls, &val);