diff options
-rw-r--r-- | llex.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $ | 2 | ** $Id: llex.c,v 1.96 2002/02/08 22:40:27 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -250,7 +250,8 @@ static void read_string (LexState *LS, int del, SemInfo *seminfo) { | |||
250 | switch (LS->current) { | 250 | switch (LS->current) { |
251 | case EOZ: case '\n': | 251 | case EOZ: case '\n': |
252 | save(L, '\0', l); | 252 | save(L, '\0', l); |
253 | luaX_error(LS, "unfinished string", TK_EOS); | 253 | luaX_error(LS, "unfinished string", |
254 | (LS->current == EOZ) ? TK_EOS : TK_STRING); | ||
254 | break; /* to avoid warnings */ | 255 | break; /* to avoid warnings */ |
255 | case '\\': | 256 | case '\\': |
256 | next(LS); /* do not save the `\' */ | 257 | next(LS); /* do not save the `\' */ |