commit 57a7baafb9de49b4fad72b1ee1dc38e5a52c4090
parent 252e01e398b09804513f881be4850de79eb5c694
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Fri, 8 Feb 2002 20:40:05 -0200
error message compatible with incomplete lines of lua.c
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llex.c b/llex.c
@@ -250,7 +250,7 @@ static void read_string (LexState *LS, int del, SemInfo *seminfo) {
switch (LS->current) {
case EOZ: case '\n':
save(L, '\0', l);
- luaX_error(LS, "unfinished string", TK_STRING);
+ luaX_error(LS, "unfinished string", TK_EOS);
break; /* to avoid warnings */
case '\\':
next(LS); /* do not save the `\' */