mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
E.g. if/guard condition patterns are column-aligned, but hitting enter after the ',' below wasn't column-aligning the next empty line: guard let x = Optional(42), // No indentation added here after enter Also the isTargetContext() check takes a start and end token location, but wasn't accounting for the end location pointing a multiline string, so we weren't walking into such nodes. This meant we didn't realise the target location was within a multiline string in some cases, and we ended up interfering with whitespace in its content.
6 lines
162 B
Swift
6 lines
162 B
Swift
func foo(x: Bool) {
|
|
while
|
|
|
|
// RUN: %sourcekitd-test -req=format -line=3 -length=1 %s | %FileCheck --strict-whitespace %s
|
|
// CHECK: key.sourcetext: " "
|