aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-02-08 20:40:27 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-02-08 20:40:27 -0200
commit57a7baafb9de49b4fad72b1ee1dc38e5a52c4090 (patch)
treed708eec56937c186a3c35a66652e2bed2eaccbc0 /llex.c
parent252e01e398b09804513f881be4850de79eb5c694 (diff)
downloadlua-57a7baafb9de49b4fad72b1ee1dc38e5a52c4090.tar.gz
lua-57a7baafb9de49b4fad72b1ee1dc38e5a52c4090.tar.bz2
lua-57a7baafb9de49b4fad72b1ee1dc38e5a52c4090.zip
error message compatible with incomplete lines of lua.c
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/llex.c b/llex.c
index dc3be2f4..8f70ff5a 100644
--- a/llex.c
+++ b/llex.c
@@ -250,7 +250,7 @@ static void read_string (LexState *LS, int del, SemInfo *seminfo) {
250 switch (LS->current) { 250 switch (LS->current) {
251 case EOZ: case '\n': 251 case EOZ: case '\n':
252 save(L, '\0', l); 252 save(L, '\0', l);
253 luaX_error(LS, "unfinished string", TK_STRING); 253 luaX_error(LS, "unfinished string", TK_EOS);
254 break; /* to avoid warnings */ 254 break; /* to avoid warnings */
255 case '\\': 255 case '\\':
256 next(LS); /* do not save the `\' */ 256 next(LS); /* do not save the `\' */