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

nest-match=align now works with match%ext. #2648

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

EmileTrotignon
Copy link
Collaborator

match%ext used to not be treated the same by nest-match-align. This is now fixed.

Requested in Issue #2081

Seems to be a very lightweight patch, and that the bug was not present at all in the test base.

@EmileTrotignon EmileTrotignon requested a review from Julow February 3, 2025 07:16
@EmileTrotignon
Copy link
Collaborator Author

Why does the linux build fail because of lacking sudo priviledges ? I had hoped to see the result of test-branch.

Copy link
Collaborator

@Julow Julow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks! The CI is having difficulties, can you rebase on top of #2649 ?

({pexp_desc= Pexp_match _ | Pexp_try _; pexp_loc; _}, _)
} ] )
, `Align )
when Source.extension_using_sugar ~name:ext ~payload:pexp_loc ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is used quite often, at some point we could consider putting this information in the Pexp_extension node.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes of course, but that turns a simple patch into a complicated project. I don't think my employer would be willing to let me do it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm mentioning this in case it spawns ideas. Of course, I want this fix to go in first.

@EmileTrotignon
Copy link
Collaborator Author

I think this is good to go

Copy link
Collaborator

@Julow Julow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No diffs with test-branch, let's merge!

@Julow Julow merged commit 2a071f8 into ocaml-ppx:main Feb 3, 2025
10 checks passed
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.

2 participants