-
Notifications
You must be signed in to change notification settings - Fork 132
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
Parse error on pattern expression with a quoted symbol in it #2634
Labels
bug
Something isn't working
Milestone
Comments
I just accidentally found a workaround. If a quoted symbol is placed first, everything seems to work just fine Change this: in { status: 'ok', '3ds_status': 'redirect', url: url } To this: in { '3ds_status': 'redirect', status: 'ok', url: url } It won't work with two such symbols though: in { '3ds_status': 'redirect', '4ds_status': 'collect', status: 'ok', url: url } |
I plan to get to this this week btw. Out of curiosity, why are you using quotes at all? |
Oh I see it has numbers. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System configuration
I've tried different combinations of ruby/prism versions, picked the most recent for an example
Steps to reproduce
here's a simplified example
Current behavior
prism
is unable to parse quoted symbol in pattern matching expressionExpected behavior
prism
has to parse this expression correctly, the same code works with current parser with no problemsThe text was updated successfully, but these errors were encountered: