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 indenting mulit-line comments at the end of blocks incorrectly #3168

Closed
lpil opened this issue May 20, 2024 · 0 comments · Fixed by #3170
Closed

Formatter indenting mulit-line comments at the end of blocks incorrectly #3168

lpil opened this issue May 20, 2024 · 0 comments · Fixed by #3170
Labels
bug Something isn't working help wanted Contributions encouraged priority:medium

Comments

@lpil
Copy link
Member

lpil commented May 20, 2024

pub fn do_len(list, acc) {
  case list {
    [] -> acc
    [_, ..rest] -> rest |> do_len(acc + 1)
    // Even the opposite wouldn't be optimised:
  // { acc + 1 } |> do_len(rest, _)
  }
}

The second line of the comment is indented less when it should be the same.

@lpil lpil added bug Something isn't working help wanted Contributions encouraged priority:medium labels May 20, 2024
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.

1 participant