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

ArgumentError on valid Ruby in ruby_parser 3.14.0 #300

Closed JacobEvelyn closed 5 years ago

JacobEvelyn commented 5 years ago

I believe I've found a regression in v3.14.0.

ruby_parser 3.14.0

RubyParser.new.parse 'puts `#{cmd}`'
ArgumentError (setting s(:array, s(:dxstr, "", s(:evstr, s(:call, nil, :cmd)))).line nil)

ruby_parser 3.13.1

RubyParser.new.parse 'puts `#{cmd}`'
=> s(:call, nil, :puts, s(:dxstr, "", s(:evstr, s(:call, nil, :cmd))))
zenspider commented 5 years ago

Fixed. Thank you for the report.