mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Don't create errors directly when parsing template spans.
This commit is contained in:
1 parent
2f634b7e54
commit
94febee138
4 files changed
+3
-9
No files matched your search
@@ -1676,13 +1676,12 @@ module ts {
|
||||
literal = parseLiteralNode();
|
||||
}
|
||||
else {
|
||||
error(Diagnostics.Invalid_template_literal_expected);
|
||||
parseExpected(SyntaxKind.CloseBraceToken);
|
||||
literal = <LiteralExpression>createMissingNode();
|
||||
literal.text = "";
|
||||
}
|
||||
|
||||
span.literal = literal;
|
||||
|
||||
return finishNode(span);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user