1
0
mirror of https://github.com/lua/lua synced 2026-06-08 15:34:49 +00:00

error message compatible with incomplete lines of lua.c

This commit is contained in:
Roberto Ierusalimschy
2002-02-08 20:40:27 -02:00
parent 252e01e398
commit 57a7baafb9
+1 -1
View File
@@ -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 `\' */