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
475 stars 102 forks source link

Fix dsym unescaping #333

Closed mvz closed 1 year ago

mvz commented 2 years ago

This fixes the following issue in the parsing of dsyms with octal escape sequences:

irb(main):005:0> RubyParser.for_current_ruby.parse  ":\"Variet\\303\\240\""
=> s(:lit, :"Variet\xC3\xA0")
irb(main):006:0> eval  ":\"Variet\\303\\240\""
=> :Varietà
zenspider commented 1 year ago

Perfect. Added. Thank you! I'll release as soon as I figure out this other issue.