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

Formatter: disallow double-breaks on attributes #2055

Open
alex-snezhko opened this issue Mar 3, 2024 · 0 comments
Open

Formatter: disallow double-breaks on attributes #2055

alex-snezhko opened this issue Mar 3, 2024 · 0 comments
Labels
grainfmt Issues related to the Grain formatter

Comments

@alex-snezhko
Copy link
Member

Currently the formatter is able to pass code like this:

@attr1

// Comment 1

@attr2

// Comment 2

let x = 1

However it would be preferable to force the breaking to look like this:

@attr1
// Comment 1
@attr2
// Comment 2
let x = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grainfmt Issues related to the Grain formatter
Projects
None yet
Development

No branches or pull requests

1 participant