seattlerb / ruby_parser

ruby_parser is a ruby parser written in pure ruby. It outputs s-expressions which can be manipulated and converted back to ruby via the ruby2ruby gem.
http://www.zenspider.com/projects/ruby_parser.html
476 stars 100 forks source link

Ruby 3.0 "endless" methods are not parsed #320

Closed mildred closed 3 years ago

mildred commented 3 years ago

https://rubyreferences.github.io/rubychanges/3.0.html#endless-method-definition

The minimal source below fails to parse:

def a = :a
zenspider commented 3 years ago

confirmed

davidcarlin-ap commented 3 years ago

This is a bit of a problem for me. Do you have any idea of when this will be fixed? Thanks

davidcarlin-ap commented 3 years ago

It looks like this was fixed in this commit https://github.com/seattlerb/ruby_parser/commit/b877e46d5ac5b2fcd94e0d7ff118bbdbd6e34e04 Can we get a new release for this please ? ❤️

presidentbeef commented 3 years ago

Yes, I'm planning a small bug fix release in the next couple weeks. I can update ruby_parser then.

zenspider commented 3 years ago

Release coming soonish.