aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-05-14 18:02:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-05-14 18:02:39 -0300
commit9eb0f25a296c355dc199647a3084de73da726ab2 (patch)
treecce6c40a462cc06a8b0410eb7684eb04ac119f4e /lparser.c
parentf93051155c4a5e7b56f892c2b9222f38b40d3e81 (diff)
downloadlua-9eb0f25a296c355dc199647a3084de73da726ab2.tar.gz
lua-9eb0f25a296c355dc199647a3084de73da726ab2.tar.bz2
lua-9eb0f25a296c355dc199647a3084de73da726ab2.zip
no more compatibility code for 4.0
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/lparser.c b/lparser.c
index cc491888..fb1c8ad3 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.209 2003/05/13 20:15:59 roberto Exp roberto $ 2** $Id: lparser.c,v 1.210 2003/05/14 12:32:46 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*/
@@ -651,18 +651,6 @@ static void prefixexp (LexState *ls, expdesc *v) {
651 singlevar(ls, v, 1); 651 singlevar(ls, v, 1);
652 return; 652 return;
653 } 653 }
654#ifdef LUA_COMPATUPSYNTAX
655 case '%': { /* for compatibility only */
656 TString *varname;
657 int line = ls->linenumber;
658 next(ls); /* skip `%' */
659 varname = singlevar(ls, v, 1);
660 if (v->k != VUPVAL)
661 luaX_errorline(ls, "global upvalues are obsolete",
662 getstr(varname), line);
663 return;
664 }
665#endif
666 default: { 654 default: {
667 luaX_syntaxerror(ls, "unexpected symbol"); 655 luaX_syntaxerror(ls, "unexpected symbol");
668 return; 656 return;