From 57a7baafb9de49b4fad72b1ee1dc38e5a52c4090 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 8 Feb 2002 20:40:27 -0200 Subject: error message compatible with incomplete lines of lua.c --- llex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llex.c') 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) { 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 `\' */ -- cgit v1.2.3-55-g6feb