diff options
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.51 2007/02/07 17:49:18 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.52 2007/03/27 14:11:38 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 | */ |
@@ -522,8 +522,7 @@ static void constructor (LexState *ls, expdesc *t) { | |||
522 | closelistfield(fs, &cc); | 522 | closelistfield(fs, &cc); |
523 | switch(ls->t.token) { | 523 | switch(ls->t.token) { |
524 | case TK_NAME: { /* may be listfields or recfields */ | 524 | case TK_NAME: { /* may be listfields or recfields */ |
525 | luaX_lookahead(ls); | 525 | if (luaX_lookahead(ls) != '=') /* expression? */ |
526 | if (ls->lookahead.token != '=') /* expression? */ | ||
527 | listfield(ls, &cc); | 526 | listfield(ls, &cc); |
528 | else | 527 | else |
529 | recfield(ls, &cc); | 528 | recfield(ls, &cc); |