aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-16 18:19:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-16 18:19:00 -0300
commitc2bb9abceceef125554595e23b7cc18ad3555c7c (patch)
tree2c00262ddf0e4f8acc1db83bdee4a56bb2458117 /llex.c
parentda32450c3d4c8abd3fd6709692859a12a8886511 (diff)
downloadlua-c2bb9abceceef125554595e23b7cc18ad3555c7c.tar.gz
lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.tar.bz2
lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.zip
better quotes for strings in 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 58125080..aee564ee 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 2.9 2004/12/03 20:54:12 roberto Exp roberto $ 2** $Id: llex.c,v 2.10 2005/04/27 18:37:51 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*/
@@ -102,7 +102,7 @@ void luaX_lexerror (LexState *ls, const char *msg, int token) {
102 luaO_chunkid(buff, getstr(ls->source), MAXSRC); 102 luaO_chunkid(buff, getstr(ls->source), MAXSRC);
103 msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg); 103 msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg);
104 if (token) 104 if (token)
105 luaO_pushfstring(ls->L, "%s near `%s'", msg, txtToken(ls, token)); 105 luaO_pushfstring(ls->L, "%s near " LUA_SM, msg, txtToken(ls, token));
106 luaD_throw(ls->L, LUA_ERRSYNTAX); 106 luaD_throw(ls->L, LUA_ERRSYNTAX);
107} 107}
108 108