aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-06-19 15:47:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-06-19 15:47:06 -0300
commitdf0df08bc537d4f2c13446fee20f8a4335f9d9d2 (patch)
tree9ddf500c4019037c2a2b80f9d94709c28258f30a /llex.c
parent9618aaf07d0d82ccbac91db22cb42451ec17d7ed (diff)
downloadlua-df0df08bc537d4f2c13446fee20f8a4335f9d9d2.tar.gz
lua-df0df08bc537d4f2c13446fee20f8a4335f9d9d2.tar.bz2
lua-df0df08bc537d4f2c13446fee20f8a4335f9d9d2.zip
"dostring" accepts chunk name.
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 8bd60aaf..8ae01d08 100644
--- a/llex.c
+++ b/llex.c
@@ -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)
48void luaX_syntaxerror (LexState *ls, char *s, char *token) { 48void 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