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 moves doc comments around when surrounded by commented-out code #3396

Closed
JosephTLyons opened this issue Jul 12, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@JosephTLyons
Copy link

gleam_format_issue.mov
/// Docs
pub fn func_1() {
  todo
}

/// Docs
pub fn func_1() {
  todo
}

gleam 1.3.0
macOS 14.4

@JosephTLyons JosephTLyons added the bug Something isn't working label Jul 12, 2024
@JosephTLyons JosephTLyons changed the title Formatter moves doc comments around when in commented-out code Formatter moves doc comments around when surrounded by commented-out code Jul 12, 2024
@giacomocavalieri
Copy link
Member

I think this is the same as #2015

@JosephTLyons
Copy link
Author

Yep, that is the same! Thanks.

Wow, even our repro cases are almost identical! 😆

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

No branches or pull requests

2 participants