diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-08 15:16:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-08 15:16:45 -0300 |
commit | d3902cfa81021bca0a8c30b3ad79a1e2367f6621 (patch) | |
tree | f7207678f626f1193742abce0a9296fc5434d9be | |
parent | b5b230d95cdf0b7dbe94ec1a5a8433f93ac2de17 (diff) | |
download | lua-d3902cfa81021bca0a8c30b3ad79a1e2367f6621.tar.gz lua-d3902cfa81021bca0a8c30b3ad79a1e2367f6621.tar.bz2 lua-d3902cfa81021bca0a8c30b3ad79a1e2367f6621.zip |
entries `{[...] = ...}' need space too.
-rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.14 2005/03/07 16:58:27 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.15 2005/03/08 18:00:16 roberto Exp roberto $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -460,11 +460,11 @@ static void recfield (LexState *ls, struct ConsControl *cc) { | |||
460 | expdesc key, val; | 460 | expdesc key, val; |
461 | if (ls->t.token == TK_NAME) { | 461 | if (ls->t.token == TK_NAME) { |
462 | luaY_checklimit(fs, cc->nh, MAX_INT, "items in a constructor"); | 462 | luaY_checklimit(fs, cc->nh, MAX_INT, "items in a constructor"); |
463 | cc->nh++; | ||
464 | checkname(ls, &key); | 463 | checkname(ls, &key); |
465 | } | 464 | } |
466 | else /* ls->t.token == '[' */ | 465 | else /* ls->t.token == '[' */ |
467 | yindex(ls, &key); | 466 | yindex(ls, &key); |
467 | cc->nh++; | ||
468 | checknext(ls, '='); | 468 | checknext(ls, '='); |
469 | luaK_exp2RK(fs, &key); | 469 | luaK_exp2RK(fs, &key); |
470 | expr(ls, &val); | 470 | expr(ls, &val); |