diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-25 16:18:20 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-25 16:18:20 -0300 |
commit | 69906cb56f1fbc20417f0ca973b3e97ef0c4bc5a (patch) | |
tree | a5d1cfc4c26fd45700048b5e4fbec22c72c37df3 | |
parent | 9d6556fd87900d1af408eb180ee9052619c990ea (diff) | |
download | lua-69906cb56f1fbc20417f0ca973b3e97ef0c4bc5a.tar.gz lua-69906cb56f1fbc20417f0ca973b3e97ef0c4bc5a.tar.bz2 lua-69906cb56f1fbc20417f0ca973b3e97ef0c4bc5a.zip |
error message ends with `\n' (is already formatted)
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.104 2002/06/03 20:12:21 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.105 2002/06/18 15:19:27 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -60,7 +60,7 @@ static void luaX_error (LexState *ls, const char *s, const char *token) { | |||
60 | lua_State *L = ls->L; | 60 | lua_State *L = ls->L; |
61 | char buff[MAXSRC]; | 61 | char buff[MAXSRC]; |
62 | luaO_chunkid(buff, getstr(ls->source), MAXSRC); | 62 | luaO_chunkid(buff, getstr(ls->source), MAXSRC); |
63 | luaO_pushfstring(L, "%s:%d: %s near `%s'", buff, ls->linenumber, s, token); | 63 | luaO_pushfstring(L, "%s:%d: %s near `%s'\n", buff, ls->linenumber, s, token); |
64 | luaD_throw(L, LUA_ERRSYNTAX); | 64 | luaD_throw(L, LUA_ERRSYNTAX); |
65 | } | 65 | } |
66 | 66 | ||