mirror of
https://github.com/lua/lua.git
synced 2025-01-28 06:03:00 +08:00
details
This commit is contained in:
parent
a048cc9676
commit
b217ae644e
8
llex.c
8
llex.c
@ -209,7 +209,7 @@ static void read_long_string (LexState *LS, SemInfo *seminfo) {
|
|||||||
switch (LS->current) {
|
switch (LS->current) {
|
||||||
case EOZ:
|
case EOZ:
|
||||||
save(L, '\0', l);
|
save(L, '\0', l);
|
||||||
luaX_error(LS, "unfinished long string", TK_STRING);
|
luaX_error(LS, "unfinished long string", TK_EOS);
|
||||||
break; /* to avoid warnings */
|
break; /* to avoid warnings */
|
||||||
case '[':
|
case '[':
|
||||||
save_and_next(L, LS, l);
|
save_and_next(L, LS, l);
|
||||||
@ -304,12 +304,6 @@ int luaX_lex (LexState *LS, SemInfo *seminfo) {
|
|||||||
inclinenumber(LS);
|
inclinenumber(LS);
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
case '$':
|
|
||||||
luaX_error(LS,
|
|
||||||
"unexpected `$' (pragmas are no longer supported)",
|
|
||||||
LS->current);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case '-':
|
case '-':
|
||||||
next(LS);
|
next(LS);
|
||||||
if (LS->current != '-') return '-';
|
if (LS->current != '-') return '-';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user