Fix parsing for U+2028 / U+2029

(they should be treated as whitespace)
This commit is contained in:
Mihai Bazon
2015-03-18 10:09:30 +02:00
parent 7c8c9b94bc
commit 80d1c8206b

View File

@@ -298,7 +298,8 @@ function tokenizer($TEXT, filename, html5_comments) {
};
function skip_whitespace() {
while (WHITESPACE_CHARS(peek()))
var ch;
while (WHITESPACE_CHARS(ch = peek()) || ch == "\u2028" || ch == "\u2029")
next();
};