Isaac Freund 48efa3bcb6 zig fmt: simplify and improve consistency of if/for/while handling
The main realization here was that getting rid of the early returns
in renderWhile() and rewriting the logic into a mostly unified execution
path took things from ~200 lines to ~100 lines and improved consistency
by deduplicating code.

Also add several test cases and fix a few issues along the way:

Fixes https://github.com/ziglang/zig/issues/6114
Fixes https://github.com/ziglang/zig/issues/8022
2021-03-15 14:55:34 +01:00
..
2021-02-28 14:03:19 +01:00
2021-03-01 20:04:28 -07:00
2021-02-25 22:20:30 +02:00
2021-02-24 21:29:23 -07:00
2021-02-28 14:03:19 +01:00
2021-02-04 14:22:38 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-01-07 23:48:58 -08:00
2020-12-31 15:45:24 -08:00
2021-02-24 21:29:23 -07:00
2020-12-31 15:45:24 -08:00
2021-02-24 21:29:23 -07:00
2021-03-01 20:04:28 -07:00
2020-12-31 15:45:24 -08:00
2021-02-24 21:29:23 -07:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-02-24 21:29:23 -07:00
2020-12-31 15:45:24 -08:00
2021-03-11 10:09:51 +11:00
2020-12-31 15:45:24 -08:00
2021-02-25 16:41:42 -07:00
2021-03-08 00:33:56 +02:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-02-16 23:20:46 +01:00
2020-12-31 15:45:24 -08:00
2021-02-24 21:29:23 -07:00
2021-03-01 20:04:28 -07:00
2021-03-05 21:21:23 +01:00
2021-02-28 14:03:19 +01:00
2020-12-31 15:45:24 -08:00
2021-03-01 18:52:15 -08:00
2021-02-25 16:54:32 -07:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00