From d67462639223159372371a24c41e87376c8b3569 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 11 Feb 2003 08:49:53 -0200 Subject: [PATCH] compatibility with '%' syntax is optional --- lparser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lparser.c b/lparser.c index fb98ebc8..68373d54 100644 --- 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;