@@ -509,8 +509,11 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
|
||||
}
|
||||
var content = "", raw = "", ch, tok;
|
||||
next(true, true);
|
||||
while ((ch = next(true, true)) !== "`") {
|
||||
if (ch === "$" && peek() === "{") {
|
||||
while ((ch = next(true, true)) != "`") {
|
||||
if (ch == "\r") {
|
||||
if (peek() == "\n") ++S.pos;
|
||||
ch = "\n";
|
||||
} else if (ch == "$" && peek() == "{") {
|
||||
next(true, true);
|
||||
S.brace_counter++;
|
||||
tok = token(begin ? "template_head" : "template_substitution", content);
|
||||
@@ -521,7 +524,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
|
||||
}
|
||||
|
||||
raw += ch;
|
||||
if (ch === "\\") {
|
||||
if (ch == "\\") {
|
||||
var tmp = S.pos;
|
||||
ch = read_escaped_char();
|
||||
raw += S.text.substr(tmp, S.pos - tmp);
|
||||
|
||||
Reference in New Issue
Block a user