mirror of
https://github.com/lua/lua
synced 2024-11-26 14:51:21 +03:00
error message
This commit is contained in:
parent
ecda9c1972
commit
51ad2f1162
5
llex.c
5
llex.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: llex.c,v 1.97 2002/03/04 15:27:14 roberto Exp roberto $
|
** $Id: llex.c,v 1.98 2002/03/08 19:07:01 roberto Exp roberto $
|
||||||
** Lexical Analyzer
|
** Lexical Analyzer
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -209,7 +209,8 @@ static void read_long_string (LexState *LS, SemInfo *seminfo) {
|
|||||||
switch (LS->current) {
|
switch (LS->current) {
|
||||||
case EOZ:
|
case EOZ:
|
||||||
save(L, '\0', l);
|
save(L, '\0', l);
|
||||||
luaX_error(LS, "unfinished long string", TK_EOS);
|
luaX_error(LS, (seminfo) ? "unfinished long string" :
|
||||||
|
"unfinished long comment", TK_EOS);
|
||||||
break; /* to avoid warnings */
|
break; /* to avoid warnings */
|
||||||
case '[':
|
case '[':
|
||||||
save_and_next(L, LS, l);
|
save_and_next(L, LS, l);
|
||||||
|
Loading…
Reference in New Issue
Block a user