diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-19 15:47:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-19 15:47:06 -0300 |
commit | df0df08bc537d4f2c13446fee20f8a4335f9d9d2 (patch) | |
tree | 9ddf500c4019037c2a2b80f9d94709c28258f30a /llex.c | |
parent | 9618aaf07d0d82ccbac91db22cb42451ec17d7ed (diff) | |
download | lua-df0df08bc537d4f2c13446fee20f8a4335f9d9d2.tar.gz lua-df0df08bc537d4f2c13446fee20f8a4335f9d9d2.tar.bz2 lua-df0df08bc537d4f2c13446fee20f8a4335f9d9d2.zip |
"dostring" accepts chunk name.
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 1.20 1998/06/06 20:44:05 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.21 1998/06/18 16:57:03 roberto Exp roberto $ |
3 | ** Lexical Analizer | 3 | ** Lexical Analizer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -48,7 +48,7 @@ void luaX_init (void) | |||
48 | void luaX_syntaxerror (LexState *ls, char *s, char *token) { | 48 | void luaX_syntaxerror (LexState *ls, char *s, char *token) { |
49 | if (token[0] == 0) | 49 | if (token[0] == 0) |
50 | token = "<eof>"; | 50 | token = "<eof>"; |
51 | luaL_verror("%.100s;\n last token read: `%.50s' at line %d in file %.50s", | 51 | luaL_verror("%.100s;\n last token read: `%.50s' at line %d in chunk `%.50s'", |
52 | s, token, ls->linenumber, zname(ls->lex_z)); | 52 | s, token, ls->linenumber, zname(ls->lex_z)); |
53 | } | 53 | } |
54 | 54 | ||