diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-01-25 20:14:09 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-01-25 20:14:09 -0200 |
commit | b217ae644e3a83def93be2fe742e2cd0970e1a5f (patch) | |
tree | 0a494b3acaf98102552a78363ffee800c7a89f4a | |
parent | a048cc9676f3572ebf5d6cc061f87cba85f5a249 (diff) | |
download | lua-b217ae644e3a83def93be2fe742e2cd0970e1a5f.tar.gz lua-b217ae644e3a83def93be2fe742e2cd0970e1a5f.tar.bz2 lua-b217ae644e3a83def93be2fe742e2cd0970e1a5f.zip |
details
-rw-r--r-- | llex.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -209,7 +209,7 @@ 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_STRING); | 212 | luaX_error(LS, "unfinished long string", TK_EOS); |
213 | break; /* to avoid warnings */ | 213 | break; /* to avoid warnings */ |
214 | case '[': | 214 | case '[': |
215 | save_and_next(L, LS, l); | 215 | save_and_next(L, LS, l); |
@@ -304,12 +304,6 @@ int luaX_lex (LexState *LS, SemInfo *seminfo) { | |||
304 | inclinenumber(LS); | 304 | inclinenumber(LS); |
305 | continue; | 305 | continue; |
306 | 306 | ||
307 | case '$': | ||
308 | luaX_error(LS, | ||
309 | "unexpected `$' (pragmas are no longer supported)", | ||
310 | LS->current); | ||
311 | break; | ||
312 | |||
313 | case '-': | 307 | case '-': |
314 | next(LS); | 308 | next(LS); |
315 | if (LS->current != '-') return '-'; | 309 | if (LS->current != '-') return '-'; |