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 indent problem #5343

Closed
donaldcallen opened this issue May 14, 2020 · 0 comments
Closed

zig fmt indent problem #5343

donaldcallen opened this issue May 14, 2020 · 0 comments
Labels
contributor friendly This issue is limited in scope and/or knowledge of Zig internals. enhancement Solving this issue will likely involve adding new logic or components to the codebase. frontend Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone

Comments

@donaldcallen
Copy link

            if (split_and_child_count != 0) {
                z.display_message_dialog(
                    *const [323:0]u8,
                    \\Cannot delete account for which there are transactions or child accounts.
                    \\To delete this account, you must first delete any transactions having
                    \\splits pointing to this account, or change the splits to point to a different account.
                    \\If there are child accounts, those must be deleted before attempting to delete this account.
                ,
                    g.GtkMessageType.GTK_MESSAGE_WARNING,
                    null,
                );
            } else {

It seems to me that the comma after the multi-line string literal is misplaced. I think it should be indented one more level.

@Vexu Vexu added contributor friendly This issue is limited in scope and/or knowledge of Zig internals. enhancement Solving this issue will likely involve adding new logic or components to the codebase. frontend Tokenization, parsing, AstGen, Sema, and Liveness. labels Jun 27, 2020
@Vexu Vexu added this to the 0.7.0 milestone Jun 27, 2020
LakeByTheWoods added a commit to LakeByTheWoods/zig that referenced this issue Aug 30, 2020
LakeByTheWoods added a commit to LakeByTheWoods/zig that referenced this issue Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor friendly This issue is limited in scope and/or knowledge of Zig internals. enhancement Solving this issue will likely involve adding new logic or components to the codebase. frontend Tokenization, parsing, AstGen, Sema, and Liveness.
Projects
None yet
Development

No branches or pull requests

2 participants