Fix template string parsing
This commit is contained in:
committed by
Richard van Velzen
parent
028ff64e9a
commit
1f75232062
@@ -1414,10 +1414,8 @@ function parse($TEXT, options) {
|
||||
tokenizer_S.next();
|
||||
next();
|
||||
segments.push(expression());
|
||||
expect("}");
|
||||
if (is("punc", "`")) {
|
||||
break;
|
||||
}
|
||||
if (!is("punc", "}"))
|
||||
token_error(tokenizer_S.token, "Unexpected token " + tokenizer_S.token.type + " «" + tokenizer_S.token.value + "»" + ", expected punc «}»");
|
||||
continue;
|
||||
}
|
||||
segment += ch;
|
||||
|
||||
Reference in New Issue
Block a user