Skip to content

just --fmt breaks else if statement #2569

@dtomasi

Description

@dtomasi

I noticed, that just --fmt --unstable breaks a else if statement.

Original statement:

linux_arch := if arch() == "x86_64" { "amd64" } else if arch() == "aarch64" { "arm64" } else { arch() }

Command: just --fmt --unstable -f test.just

Statement after formatting:

linux_arch := if arch() == "x86_64" { "amd64" } else { if arch() == "aarch64" { "arm64" } else { arch() } }

I know that formatting is unstable, but wanted to report this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions