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

missing indent for multi-line global statement #86

Open
talcynon opened this issue Jan 2, 2023 · 0 comments
Open

missing indent for multi-line global statement #86

talcynon opened this issue Jan 2, 2023 · 0 comments

Comments

@talcynon
Copy link

talcynon commented Jan 2, 2023

At a global level, writing const x = followed by a new line does not add indentation. (== doesn't affect the code.) Indentation is added correctly when the code is in a function.

Expected:

// Should indent...
const a =
    123;

pub fn main() u8 {
    // Indents as expected.
    const b =
        0;
    return b;
}

Actual:

// Should indent...
const a =
123;

pub fn main() u8 {
    // Indents as expected.
    const b =
        0;
    return b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant