diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-24 14:41:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-24 14:41:10 -0300 |
commit | 8974b59e4014dd1ca79dec6994d4c53ac226de5f (patch) | |
tree | c1a72af8b0a281a0aadcafbabee682271e7f62e3 | |
parent | 4ff1e5b4e10fcc27bf8f2d99b188847b085fc556 (diff) | |
download | lua-8974b59e4014dd1ca79dec6994d4c53ac226de5f.tar.gz lua-8974b59e4014dd1ca79dec6994d4c53ac226de5f.tar.bz2 lua-8974b59e4014dd1ca79dec6994d4c53ac226de5f.zip |
no more compatibility for {;} and similar syntax
-rw-r--r-- | lparser.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.32 2005/08/17 18:32:09 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.33 2005/08/22 18:54:32 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 | */ |
@@ -526,7 +526,6 @@ static void constructor (LexState *ls, expdesc *t) { | |||
526 | checknext(ls, '{'); | 526 | checknext(ls, '{'); |
527 | do { | 527 | do { |
528 | lua_assert(cc.v.k == VVOID || cc.tostore > 0); | 528 | lua_assert(cc.v.k == VVOID || cc.tostore > 0); |
529 | testnext(ls, ';'); /* compatibility only */ | ||
530 | if (ls->t.token == '}') break; | 529 | if (ls->t.token == '}') break; |
531 | closelistfield(fs, &cc); | 530 | closelistfield(fs, &cc); |
532 | switch(ls->t.token) { | 531 | switch(ls->t.token) { |