-
Notifications
You must be signed in to change notification settings - Fork 176
Ruby 4.0 #3709
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
Ruby 4.0 #3709
Conversation
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
left a comment
There was a problem hiding this 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, |
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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.
kddnewton
left a comment
There was a problem hiding this 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!
See ruby/ruby@6d81969
It leaves the old variant around. RuboCop for examples accesses
Prism::Translation::Parser35to test against ruby-head. For now I left these simply as an alias