From 5563d44c4c6d671669481246f3e0f421b92da55e Mon Sep 17 00:00:00 2001 From: stevenwong Date: Mon, 29 May 2023 13:12:15 +0800 Subject: [PATCH] Add `Token.break` after fixity in operator declaration --- Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift b/Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift index 0ed166de0..6638e990e 100644 --- a/Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift +++ b/Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift @@ -1471,6 +1471,7 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor { } override func visit(_ node: OperatorDeclSyntax) -> SyntaxVisitorContinueKind { + after(node.fixity, tokens: .break) after(node.operatorKeyword, tokens: .break) return .visitChildren }