zig fmt: fix extra newline before if nested in for

Add failing testcase to reproduce issue 8088

Tidy up renderWhile(), factoring out renderWhilePayload()

Ensure correct newline is used before 'then' token in while/for/if

Handle indents for 'if' inside 'for' or 'while'

Stop special-casing 'if' compared to 'for' and 'while'
b4db03d8bbLewis Gaul committed on 3/15/2021, 1:55:34 PM· committed by Isaac Freundparenta502c16
2 files changedLine totals unavailable