diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-17 16:49:15 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-17 16:49:15 -0300 |
commit | 67578ec51f1a3ec2c967f15d370067caf9e0b87b (patch) | |
tree | d77b292ddec33d7e6987bae808fa1db250ebd830 /llex.c | |
parent | c2bb9abceceef125554595e23b7cc18ad3555c7c (diff) | |
download | lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.tar.gz lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.tar.bz2 lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.zip |
several small details
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 2.10 2005/04/27 18:37:51 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 2.11 2005/05/16 21:19:00 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 " LUA_SM, msg, txtToken(ls, token)); | 105 | luaO_pushfstring(ls->L, "%s near " LUA_QS, msg, txtToken(ls, token)); |
106 | luaD_throw(ls->L, LUA_ERRSYNTAX); | 106 | luaD_throw(ls->L, LUA_ERRSYNTAX); |
107 | } | 107 | } |
108 | 108 | ||