Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zig fmt messes if indentation after line break #7363

Open
Vexu opened this issue Dec 9, 2020 · 0 comments
Open

zig fmt messes if indentation after line break #7363

Vexu opened this issue Dec 9, 2020 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior standard library This issue involves writing Zig code for the standard library. zig fmt
Milestone

Comments

@Vexu
Copy link
Member

Vexu commented Dec 9, 2020

zig fmt will currently turn

comptime {
    a =
        if (foo)
            bar;
}

into

comptime {
    a =
        if (foo)
        bar;
}

Same happens for for and while.

@Vexu Vexu added standard library This issue involves writing Zig code for the standard library. frontend Tokenization, parsing, AstGen, Sema, and Liveness. labels Dec 9, 2020
@Vexu Vexu added this to the 0.8.0 milestone Dec 9, 2020
@andrewrk andrewrk modified the milestones: 0.8.0, 0.9.0 Jun 4, 2021
@andrewrk andrewrk modified the milestones: 0.9.0, 0.11.0 Nov 24, 2021
@ifreund ifreund added bug Observed behavior contradicts documented or intended behavior and removed frontend Tokenization, parsing, AstGen, Sema, and Liveness. labels Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior standard library This issue involves writing Zig code for the standard library. zig fmt
Projects
None yet
Development

No branches or pull requests

3 participants