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

Anonymous block forwarding (Ruby-3.1 support) #325

Closed ojab closed 2 years ago

ojab commented 2 years ago

https://rubyreferences.github.io/rubychanges/3.1.html#anonymous-block-argument

def foo(&)
  bar(&)
end

should be parsed correctly.

zenspider commented 2 years ago

This has been addressed in the latest release.