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

Fix bug multiline comment in cinaps #2469

Conversation

tdelvecchio-jsc
Copy link
Contributor

Fixes #2468.

Previously, if a comment got reformatted within cinaps code, the check that comments are preserved would fail. Normalization logic exists to allow formatting of code in cinaps comments, but normalization did not descend into comments within cinaps code.

This patch fixes the issue and adds tests for it.

Note: this issue is also fixed by #2371, so likely doesn't need to be merged, but I am putting this here in case that pull request gets blocked.

Julow added a commit to Julow/ocamlformat that referenced this pull request Nov 7, 2023
@Julow
Copy link
Collaborator

Julow commented Nov 8, 2023

The normalization of comments changed in #2371 and this is no longer needed to fix the issue.
Thanks!

@Julow Julow closed this Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Dropped comment in some cinaps code.
2 participants