Undesireable zig fmt behavior with while statement nested in blockless if #6114
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
standard library
This issue involves writing Zig code for the standard library.
zig fmt
Milestone
zig fmt currently allows either of the following:
Ideally, I think that it should allow something like this:
This can be worked around by using a labeled block for the first arm of the if statement, but labels are quite verbose.
The text was updated successfully, but these errors were encountered: