diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-10-25 14:45:47 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-10-25 14:45:47 -0200 |
| commit | 3138afbe2e16f5a9ac3c40757e30b9563b23256b (patch) | |
| tree | 77817f0b12f833188b9439fa90d057bc0178ac87 /lparser.c | |
| parent | 4eef0aaad19cb442fc7b103eda9a249aa4c0ecef (diff) | |
| download | lua-3138afbe2e16f5a9ac3c40757e30b9563b23256b.tar.gz lua-3138afbe2e16f5a9ac3c40757e30b9563b23256b.tar.bz2 lua-3138afbe2e16f5a9ac3c40757e30b9563b23256b.zip | |
parser should not call 'luaX_lexerror'
Diffstat (limited to 'lparser.c')
| -rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lparser.c,v 2.54 2007/07/31 19:39:52 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.55 2007/10/18 11:01:52 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 | */ |
| @@ -75,7 +75,7 @@ static void errorlimit (FuncState *fs, int limit, const char *what) { | |||
| 75 | luaO_pushfstring(fs->L, "function at line %d", fs->f->linedefined); | 75 | luaO_pushfstring(fs->L, "function at line %d", fs->f->linedefined); |
| 76 | msg = luaO_pushfstring(fs->L, "too many %s (limit is %d) in %s", | 76 | msg = luaO_pushfstring(fs->L, "too many %s (limit is %d) in %s", |
| 77 | what, limit, where); | 77 | what, limit, where); |
| 78 | luaX_lexerror(fs->ls, msg, fs->ls->t.token); | 78 | luaX_syntaxerror(fs->ls, msg); |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | 81 | ||
