parser should not call 'luaX_lexerror'

This commit is contained in:
Roberto Ierusalimschy
2007-10-25 14:45:47 -02:00
parent 4eef0aaad1
commit 3138afbe2e
3 changed files with 17 additions and 15 deletions

View File

@@ -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);
}