aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-05 16:45:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-05 16:45:42 -0300
commit1bdde38bd24b137a240aede92363837e3d1a79b9 (patch)
treefeb4d9bc8c4dc3c3bf815bd1d21b837c92debf59 /llex.c
parentb2bc3b44b6bdf5efd783a50c28e108ac3bcba9fd (diff)
downloadlua-1bdde38bd24b137a240aede92363837e3d1a79b9.tar.gz
lua-1bdde38bd24b137a240aede92363837e3d1a79b9.tar.bz2
lua-1bdde38bd24b137a240aede92363837e3d1a79b9.zip
no more newlines at the end of error messages
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index 0dc47fd2..f0cf7146 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.109 2002/08/16 14:45:55 roberto Exp roberto $ 2** $Id: llex.c,v 1.110 2002/09/03 11:57:38 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*/
@@ -61,7 +61,7 @@ static void luaX_error (LexState *ls, const char *s, const char *token) {
61 lua_State *L = ls->L; 61 lua_State *L = ls->L;
62 char buff[MAXSRC]; 62 char buff[MAXSRC];
63 luaO_chunkid(buff, getstr(ls->source), MAXSRC); 63 luaO_chunkid(buff, getstr(ls->source), MAXSRC);
64 luaO_pushfstring(L, "%s:%d: %s near `%s'\n", buff, ls->linenumber, s, token); 64 luaO_pushfstring(L, "%s:%d: %s near `%s'", buff, ls->linenumber, s, token);
65 luaD_throw(L, LUA_ERRSYNTAX); 65 luaD_throw(L, LUA_ERRSYNTAX);
66} 66}
67 67