aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-25 16:18:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-25 16:18:20 -0300
commit69906cb56f1fbc20417f0ca973b3e97ef0c4bc5a (patch)
treea5d1cfc4c26fd45700048b5e4fbec22c72c37df3
parent9d6556fd87900d1af408eb180ee9052619c990ea (diff)
downloadlua-69906cb56f1fbc20417f0ca973b3e97ef0c4bc5a.tar.gz
lua-69906cb56f1fbc20417f0ca973b3e97ef0c4bc5a.tar.bz2
lua-69906cb56f1fbc20417f0ca973b3e97ef0c4bc5a.zip
error message ends with `\n' (is already formatted)
-rw-r--r--llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index 7f634757..db4ff12e 100644
--- a/llex.c
+++ b/llex.c
@@ -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