Closed shredsonic closed 11 months ago
@zzt4 thanks for reporting these. Both are definitely fixable. In the meantime, manually moving the try to the correct place should prevent SwiftFormat from mangling these lines on the next run.
@zzt4 fixed in 0.52.3
It looks like we ran into a couple of edge cases with
try
hoisting. Two of these seem to be the same scenario, while the third one is inside a raw string. We can ignore the raw string one, but I'm providing it here in case it's fixable. I checked these against the latest release:0.52.2
.