mirror of https://github.com/rusefi/lua.git
error message compatible with incomplete lines of lua.c
This commit is contained in:
parent
252e01e398
commit
57a7baafb9
2
llex.c
2
llex.c
|
@ -250,7 +250,7 @@ static void read_string (LexState *LS, int del, SemInfo *seminfo) {
|
||||||
switch (LS->current) {
|
switch (LS->current) {
|
||||||
case EOZ: case '\n':
|
case EOZ: case '\n':
|
||||||
save(L, '\0', l);
|
save(L, '\0', l);
|
||||||
luaX_error(LS, "unfinished string", TK_STRING);
|
luaX_error(LS, "unfinished string", TK_EOS);
|
||||||
break; /* to avoid warnings */
|
break; /* to avoid warnings */
|
||||||
case '\\':
|
case '\\':
|
||||||
next(LS); /* do not save the `\' */
|
next(LS); /* do not save the `\' */
|
||||||
|
|
Loading…
Reference in New Issue