We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
async
1 parent f30e81e commit 4724c19Copy full SHA for 4724c19
Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift
@@ -1700,7 +1700,7 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
1700
// this special exception for `async let` statements to avoid breaking prematurely between the
1701
// `async` and `let` keywords.
1702
let breakOrSpace: Token
1703
- if node.name.tokenKind == .identifier("async") {
+ if node.name.tokenKind == .contextualKeyword("async") {
1704
breakOrSpace = .space
1705
} else {
1706
breakOrSpace = .break
0 commit comments