Skip to content

Conversation

@Earlopain
Copy link
Collaborator

See ruby/ruby@6d81969

It leaves the old variant around. RuboCop for examples accesses Prism::Translation::Parser35 to test against ruby-head. For now I left these simply as an alias

See ruby/ruby@6d81969

It leaves the old variant around. RuboCop for examples accesses `Prism::Translation::Parser35`
to test against ruby-head. For now I left these simply as an alias
@Earlopain Earlopain marked this pull request as ready for review November 7, 2025 12:26
Copy link
Collaborator Author

@Earlopain Earlopain left a comment

Choose a reason for hiding this comment

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

CI will break in a day or two when ruby-dev becomes 4.0. But for now that hasn't happened yet, so I did not change anything there.

PM_OPTIONS_VERSION_CRUBY_3_5 = 3,

/** The vendored version of prism in CRuby 4.0.x. */
PM_OPTIONS_VERSION_CRUBY_4_0 = 3,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No need to use a different number here than for "3.5". They are the same after all.

V3_3(1),
V3_4(2),
V3_5(3);
V3_5(3),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have a use-case for keeping the 3.5 parser translator. While I can't say the same for the other places, I'd keep them all around for now.

In a year or two I'd simply remove them.

@Earlopain Earlopain mentioned this pull request Nov 7, 2025
Copy link
Collaborator

@kddnewton kddnewton left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@kddnewton kddnewton merged commit b3d83f6 into ruby:main Nov 8, 2025
62 checks passed
@Earlopain Earlopain deleted the ruby-4.0 branch December 3, 2025 07:36
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