Skip to content

Fix bug multiline comment in cinaps#2469

Closed
mdelvecchio-jsc wants to merge 2 commits intoocaml-ppx:mainfrom
mdelvecchio-jsc:fix-bug-multiline-comment-in-cinaps
Closed

Fix bug multiline comment in cinaps#2469
mdelvecchio-jsc wants to merge 2 commits intoocaml-ppx:mainfrom
mdelvecchio-jsc:fix-bug-multiline-comment-in-cinaps

Conversation

@mdelvecchio-jsc
Copy link
Copy Markdown
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
Copy Markdown
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