Closed calda closed 11 months ago
Merging #1577 (e3e01a1) into develop (a22fbc3) will increase coverage by
0.48%
. The diff coverage isn/a
.
@@ Coverage Diff @@
## develop #1577 +/- ##
===========================================
+ Coverage 95.03% 95.51% +0.48%
===========================================
Files 20 20
Lines 21842 21840 -2
===========================================
+ Hits 20757 20860 +103
+ Misses 1085 980 -105
Files | Coverage Δ | |
---|---|---|
Sources/Tokenizer.swift | 96.54% <ø> (-0.01%) |
:arrow_down: |
This PR fixes an issue where switch cases with multiple where clauses could parse incorrectly. Fixes https://github.com/nicklockwood/SwiftFormat/issues/1554.
Specifically, the
<
token in the example below was unexpectedly being tokenized as a.startOfScope
token, leaving the:
tokenized as adelimiter
instead of astartOfScope
. This broke the logic inswitchStatementBranches
, which was looking for a.startOfScope(":")
.