| ... | ... | @@ -4297,6 +4297,18 @@ test "zig fmt: respect extra newline between switch items" { |
| 4297 | 4297 | ); |
| 4298 | 4298 | } |
| 4299 | 4299 | |
| 4300 | test "zig fmt: assignment with inline for and inline while" { |
| 4301 | try testCanonical( |
| 4302 | \\const tmp = inline for (items) |item| {}; |
| 4303 | \\ |
| 4304 | ); |
| 4305 | |
| 4306 | try testCanonical( |
| 4307 | \\const tmp2 = inline while (true) {}; |
| 4308 | \\ |
| 4309 | ); |
| 4310 | } |
| 4311 | |
| 4300 | 4312 | test "zig fmt: insert trailing comma if there are comments between switch values" { |
| 4301 | 4313 | try testTransform( |
| 4302 | 4314 | \\const a = switch (b) { |