Open Mehonoshin opened 7 years ago
It looks like you're trying to highlight the output of #inspect as Ruby code. However, this isn't valid Ruby syntax – so it's not really CodeRay's fault ;)
Yeah, but I'm also trying to solve an issue with higher-level tools, like PRY. They use CodeRay for such things highlighting: https://monosnap.com/file/YQVmVscdkzgIkp4holKmq3LhmpQRPe
And this results that the output is not very pretty.
I understand that the primary goal of your tool is highlighting of sources, but probably we can implement inspect highlighting too :)
Hey there! I found the following issue, it does not highlight all fields of such object.
I understand, that it can be complex problem, but maybe anyone has an idea how to solve this?
It seems that problem is related to parsing
#<Proc:0x007fc73d75cfb8@/Users/mexx/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/trailblazer-2.0.7/lib/trailblazer/operation/guard.rb:14 (lambda)>
Procs and other nested objects.