You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prism is unable to parse quoted symbol in pattern matching expression
require'prism'Prism.parse(code).errors# => [#<Prism::ParseError @message="expected a label after the `,` in the hash pattern" @location=#<Prism::Location @start_offset=99 @length=0 start_line=4> @level=:fatal>]
Expected behavior
prism has to parse this expression correctly, the same code works with current parser with no problems
require'parser/current'Parser::CurrentRuby.parse(code)# no errors
The text was updated successfully, but these errors were encountered:
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: