From 3138afbe2e16f5a9ac3c40757e30b9563b23256b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 25 Oct 2007 14:45:47 -0200 Subject: parser should not call 'luaX_lexerror' --- lparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index 700191bc..51938388 100644 --- a/lparser.c +++ b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 2.54 2007/07/31 19:39:52 roberto Exp roberto $ +** $Id: lparser.c,v 2.55 2007/10/18 11:01:52 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -75,7 +75,7 @@ static void errorlimit (FuncState *fs, int limit, const char *what) { luaO_pushfstring(fs->L, "function at line %d", fs->f->linedefined); msg = luaO_pushfstring(fs->L, "too many %s (limit is %d) in %s", what, limit, where); - luaX_lexerror(fs->ls, msg, fs->ls->t.token); + luaX_syntaxerror(fs->ls, msg); } -- cgit v1.2.3-55-g6feb