zig fmt: Fix regression in for-else (#2178)

This commit is contained in:
hryx
2019-04-03 21:36:21 -07:00
committed by Andrew Kelley
parent 90b6eab05a
commit cec8c8678a
2 changed files with 20 additions and 9 deletions

View File

@@ -1828,6 +1828,15 @@ test "zig fmt: for" {
\\ continue;
\\ } else return;
\\
\\ for (a) |v| continue else {
\\ return;
\\ }
\\
\\ for (a) |v|
\\ continue
\\ else
\\ return;
\\
\\ for (a) |v|
\\ continue;
\\