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 inline comment before spread syntax in record #6615

Merged
merged 9 commits into from
Feb 12, 2024

Conversation

shulhi
Copy link
Member

@shulhi shulhi commented Feb 7, 2024

Fix #6506

@shulhi shulhi marked this pull request as ready for review February 8, 2024 09:03
@shulhi shulhi force-pushed the fix/record-spread-comment branch from 6f9395c to b06544f Compare February 8, 2024 09:04
@@ -125,7 +125,7 @@ let user = /* before */ {
} // after

let spreadUser = {
.../* before */ user1 /* after */,
/* before */ ...user1 /* after */,
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the only place where the formatting will change. The spread (...) operator and the ident are matched together. I think it makes sense than allowing comment to be placed in between them.

@shulhi
Copy link
Member Author

shulhi commented Feb 10, 2024

@zth mind reviewing this when you have a chance?

@zth zth requested a review from cknitt February 11, 2024 20:21
@zth
Copy link
Collaborator

zth commented Feb 11, 2024

@cknitt you worked a bit with the comments, right? Could you review this?

Copy link
Member

@cknitt cknitt left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉 Thanks a lot!

@zth zth merged commit f2c1f84 into rescript-lang:11.0_release Feb 12, 2024
14 checks passed
@shulhi shulhi deleted the fix/record-spread-comment branch February 13, 2024 09:03
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.

3 participants