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.97 2002/03/04 15:27:14 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.98 2002/03/08 19:07:01 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 | */ |
| @@ -209,7 +209,8 @@ static void read_long_string (LexState *LS, SemInfo *seminfo) { | |||
| 209 | switch (LS->current) { | 209 | switch (LS->current) { |
| 210 | case EOZ: | 210 | case EOZ: |
| 211 | save(L, '\0', l); | 211 | save(L, '\0', l); |
| 212 | luaX_error(LS, "unfinished long string", TK_EOS); | 212 | luaX_error(LS, (seminfo) ? "unfinished long string" : |
| 213 | "unfinished long comment", TK_EOS); | ||
| 213 | break; /* to avoid warnings */ | 214 | break; /* to avoid warnings */ |
| 214 | case '[': | 215 | case '[': |
| 215 | save_and_next(L, LS, l); | 216 | save_and_next(L, LS, l); |
