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

Block comments in measure are lost or restored twice and in wrong place #2927

Closed
3 of 4 tasks
dawedawe opened this issue Jul 23, 2023 · 1 comment · Fixed by #2925
Closed
3 of 4 tasks

Block comments in measure are lost or restored twice and in wrong place #2927

dawedawe opened this issue Jul 23, 2023 · 1 comment · Fixed by #2925

Comments

@dawedawe
Copy link
Member

Issue created from fantomas-online

Code

234<(*foo*)kg(* bar *)>

Result

234 (*foo*) (*foo*) <kg>

Problem description

The first comment is restored twice before the < of the measure which breaks the code.
The second comment is lost.

Extra information

  • The formatted result breaks my code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.
  • I would like a release if this problem is solved.

Options

Fantomas main branch at 2023-07-12T08:15:24Z - 41fe8d6

Default Fantomas configuration

Did you know that you can ignore files when formatting by using a .fantomasignore file?
PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.

@dawedawe dawedawe self-assigned this Jul 23, 2023
@dawedawe dawedawe changed the title Inline comments in measure are lost or restored twice and in wrong place Block comments in measure are lost or restored twice and in wrong place Jul 23, 2023
@dawedawe dawedawe linked a pull request Jul 24, 2023 that will close this issue
@dawedawe
Copy link
Member Author

Fixes with #2925

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant