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

Comment put in wrong place by formatter #3109

Closed
u9g opened this issue May 7, 2024 · 1 comment · Fixed by #3128
Closed

Comment put in wrong place by formatter #3109

u9g opened this issue May 7, 2024 · 1 comment · Fixed by #3128
Labels
bug Something isn't working help wanted Contributions encouraged priority:medium

Comments

@u9g
Copy link

u9g commented May 7, 2024

When formatting the code snippet:

import gleam/option.{None}

pub fn main() {
  None
  |> option.map(fn(a) { //
  a })
}

The formatted code ends up being:

import gleam/option.{None}

pub fn main() {
  None
  |> option.map(
    fn(
      a,
      //
    ) {
      a
    },
  )
}

Which I think is wrong, as the comment should end up on the first line of the block.

@u9g u9g added the bug Something isn't working label May 7, 2024
@lpil
Copy link
Member

lpil commented May 7, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Contributions encouraged priority:medium
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants