mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Parse '\*' escape in strings (from Lua 5.2).
This commit is contained in:
parent
b776bf91ff
commit
367ff0cdaa
@ -175,6 +175,11 @@ static void read_string(LexState *ls, int delim, TValue *tv)
|
|||||||
c += 9;
|
c += 9;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case '*': /* Skip whitespace. */
|
||||||
|
next(ls);
|
||||||
|
while (lj_char_isspace(ls->current))
|
||||||
|
if (currIsNewline(ls)) inclinenumber(ls); else next(ls);
|
||||||
|
continue;
|
||||||
case '\n': case '\r': save(ls, '\n'); inclinenumber(ls); continue;
|
case '\n': case '\r': save(ls, '\n'); inclinenumber(ls); continue;
|
||||||
case END_OF_STREAM: continue;
|
case END_OF_STREAM: continue;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user