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

Pattern accepted by parser but rejected by MRI #919

Open
mbj opened this issue Mar 27, 2023 · 0 comments
Open

Pattern accepted by parser but rejected by MRI #919

mbj opened this issue Mar 27, 2023 · 0 comments
Labels

Comments

@mbj
Copy link
Collaborator

mbj commented Mar 27, 2023

In reference to: mbj/unparser#340 (comment), it appears that parser currently accepts syntax that is rejected in MRI:

case foo
in {"#{"a"}": 1}
end

This is accepted in recent parser releases, in ruby version 2.7 to 3.2. Also accepted by MRI 2.7, but rejected 3.0-3.2.

I think we should adapt the parser grammars for 3.0+ to reject this also. Thanks to @kddnewton for reporting in unparser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant