diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-08 20:40:27 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-08 20:40:27 -0200 |
| commit | 57a7baafb9de49b4fad72b1ee1dc38e5a52c4090 (patch) | |
| tree | d708eec56937c186a3c35a66652e2bed2eaccbc0 | |
| parent | 252e01e398b09804513f881be4850de79eb5c694 (diff) | |
| download | lua-57a7baafb9de49b4fad72b1ee1dc38e5a52c4090.tar.gz lua-57a7baafb9de49b4fad72b1ee1dc38e5a52c4090.tar.bz2 lua-57a7baafb9de49b4fad72b1ee1dc38e5a52c4090.zip | |
error message compatible with incomplete lines of lua.c
| -rw-r--r-- | llex.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -250,7 +250,7 @@ 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_STRING); | 253 | luaX_error(LS, "unfinished string", TK_EOS); |
| 254 | break; /* to avoid warnings */ | 254 | break; /* to avoid warnings */ |
| 255 | case '\\': | 255 | case '\\': |
| 256 | next(LS); /* do not save the `\' */ | 256 | next(LS); /* do not save the `\' */ |
