fables-tales / rubyfmt

Ruby Autoformatter!
MIT License
1.07k stars 50 forks source link

Tree deserialization error with `and`/`or` operators #447

Closed aisamanra closed 8 months ago

aisamanra commented 10 months ago

Input file

Minimized down to:

thing or thing.other

Rubyfmt's output

!!! Ruby Tree Deserialization Error !!!

This breaks because

This successfully parsed with v0.8, so this was a regression in v0.10.

fables-tales commented 10 months ago

fyi the ripper trees are the same between ruby versions, so it seems like we probably screwed up in our parse tree