mirror of
https://github.com/lua/lua.git
synced 2025-01-14 05:43:00 +08:00
no more compatibility for {;} and similar syntax
This commit is contained in:
parent
4ff1e5b4e1
commit
8974b59e40
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lparser.c,v 2.32 2005/08/17 18:32:09 roberto Exp roberto $
|
** $Id: lparser.c,v 2.33 2005/08/22 18:54:32 roberto Exp roberto $
|
||||||
** Lua Parser
|
** Lua Parser
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -526,7 +526,6 @@ static void constructor (LexState *ls, expdesc *t) {
|
|||||||
checknext(ls, '{');
|
checknext(ls, '{');
|
||||||
do {
|
do {
|
||||||
lua_assert(cc.v.k == VVOID || cc.tostore > 0);
|
lua_assert(cc.v.k == VVOID || cc.tostore > 0);
|
||||||
testnext(ls, ';'); /* compatibility only */
|
|
||||||
if (ls->t.token == '}') break;
|
if (ls->t.token == '}') break;
|
||||||
closelistfield(fs, &cc);
|
closelistfield(fs, &cc);
|
||||||
switch(ls->t.token) {
|
switch(ls->t.token) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user