Hey there! I noticed the following behaviour, when using rightward assignment `=>` inside a `case ... when`: ```ruby puts SyntaxTree.format <<~RUBY case [0] when 0 { a: 0 } => { a: } puts a end RUBY ``` produces: ```ruby [0] => when 0 case { a: 0 } a: end puts a ``` It seems like the rightward assignment is moved to the top... producing an invalid ruby syntax. Do you know where this may come from? Regards,
Activity
kddnewton commentedon Dec 28, 2022
Ahh this is a problem with the parser. Just found the fix, thanks!
Fix for #235
Fix for #235
Fix for #235
Fix for #235
Merge pull request #236 from ruby-syntax-tree/fixes
hpello commentedon Dec 28, 2022
Works like a charm! Thanks 👏🎉