Commit e65a80a
Support full-indent for switch cases
When `swift-mode:switch-case-offset` is set equal to the basic offset,
lines following a `case` inside a `switch` should still be indented.
Change the offset calculation to fall back to `swift-mode:basic-offset`
if the difference between the offsets is 0 (or less).
Resolves #1661 parent 7d93c75 commit e65a80a
File tree
2 files changed
+18
-1
lines changed- test/swift-files/indent
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
692 | | - | |
| 692 | + | |
| 693 | + | |
693 | 694 | | |
694 | 695 | | |
695 | 696 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
926 | 942 | | |
927 | 943 | | |
928 | 944 | | |
| |||
0 commit comments