From: Mike Pall Date: Mon, 22 Nov 2010 21:22:12 +0000 (+0100) Subject: Parse '\*' escape in strings (from Lua 5.2). X-Git-Tag: v2.0.0-beta6~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=367ff0cdaa12cfc8dcb7cb7d832998fd29500069;p=thirdparty%2FLuaJIT.git Parse '\*' escape in strings (from Lua 5.2). --- diff --git a/src/lj_lex.c b/src/lj_lex.c index fde7d9ca..a115b79a 100644 --- a/src/lj_lex.c +++ b/src/lj_lex.c @@ -175,6 +175,11 @@ static void read_string(LexState *ls, int delim, TValue *tv) c += 9; } 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 END_OF_STREAM: continue; default: