aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-08 16:25:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-08 16:25:24 -0300
commit51ad2f11623c25874b6a0e721e0597df784068ff (patch)
tree48d5d8d7ff63a3ee31a3036de12d16ba8ac09c72
parentecda9c1972dbe5ba585d78f9a33d6ab875648722 (diff)
downloadlua-51ad2f11623c25874b6a0e721e0597df784068ff.tar.gz
lua-51ad2f11623c25874b6a0e721e0597df784068ff.tar.bz2
lua-51ad2f11623c25874b6a0e721e0597df784068ff.zip
error message
-rw-r--r--llex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index a49e794e..0004c9a8 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.97 2002/03/04 15:27:14 roberto Exp roberto $ 2** $Id: llex.c,v 1.98 2002/03/08 19:07:01 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*/
@@ -209,7 +209,8 @@ static void read_long_string (LexState *LS, SemInfo *seminfo) {
209 switch (LS->current) { 209 switch (LS->current) {
210 case EOZ: 210 case EOZ:
211 save(L, '\0', l); 211 save(L, '\0', l);
212 luaX_error(LS, "unfinished long string", TK_EOS); 212 luaX_error(LS, (seminfo) ? "unfinished long string" :
213 "unfinished long comment", TK_EOS);
213 break; /* to avoid warnings */ 214 break; /* to avoid warnings */
214 case '[': 215 case '[':
215 save_and_next(L, LS, l); 216 save_and_next(L, LS, l);