fables-tales / rubyfmt

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

Properly track line numbers for keyword binary operators #449

Closed reese closed 8 months ago

reese commented 9 months ago

Closes #447

and and or behave like binary operators, but for some reason they don't trigger an on_op call inside Ripper, so we fail to deserialize them because the line numbers are nil. This updates the ruby lib to register the line numbers appropriately for these keywords.