lua

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

commit d67462639223159372371a24c41e87376c8b3569
parent 7a40cdbda0a171da223094208dd3c6e3eca13922
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue, 11 Feb 2003 08:49:31 -0200

compatibility with '%' syntax is optional

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

diff --git a/lparser.c b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 1.203 2002/12/19 11:11:55 roberto Exp roberto $ +** $Id: lparser.c,v 1.204 2003/02/11 10:46:24 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -644,12 +644,14 @@ static void prefixexp (LexState *ls, expdesc *v) { singlevar(ls, v, 1); return; } +#ifdef LUA_COMPATUPSYNTAX case '%': { /* for compatibility only */ next(ls); /* skip `%' */ singlevar(ls, v, 1); check_condition(ls, v->k == VUPVAL, "global upvalues are obsolete"); return; } +#endif default: { luaX_syntaxerror(ls, "unexpected symbol"); return;