mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-13 11:46:08 -05:00
Allow line break before import attributes with keyword (#62593)
This commit is contained in:
committed by
GitHub
parent
0b6a241886
commit
d3be7e171b
@@ -8435,7 +8435,7 @@ namespace Parser {
|
||||
|
||||
function tryParseImportAttributes() {
|
||||
const currentToken = token();
|
||||
if ((currentToken === SyntaxKind.WithKeyword || currentToken === SyntaxKind.AssertKeyword) && !scanner.hasPrecedingLineBreak()) {
|
||||
if (currentToken === SyntaxKind.WithKeyword || (currentToken === SyntaxKind.AssertKeyword && !scanner.hasPrecedingLineBreak())) {
|
||||
return parseImportAttributes(currentToken);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user