Kevin Newton
Kevin Newton
I think this would be a worthwhile change, but ultimately I wouldn't be the one maintaining it so I don't think I can weigh in very heavily. I believe the...
Can you share the code you are trying to format?
Here's some code that would do what you're effectively looking for. I think you should definitely go in this direction, as indexing speed is paramount to getting to interactive. ```ruby...
Another possibility is to use the `node_id` functionality, which is how error highlight accomplishes this exact problem (it doesn't keep around the source code, it reparses when an error is...
https://github.com/ruby/prism/blob/main/sample/prism/multiplex_constants.rb
For what it's worth, we ran into this same issue with prism. I didn't want to check in the generated files either, so I ended up doing the second approach...
This gets close, but runs into issues with escaped `\r` and literal `\n` then getting grouped, as in: ```ruby
In general I think this is the right long-term direction, but I'm uncomfortable soft deprecating until we mirror the tree rewriting functionality, since so many consumers use that. I think...
Truthfully I don't know if parse.y is going to be deprecated, or if that will happen any time soon at all. I imagine it could stick around for quite a...
> All my use cases would be covered but not yours, curious if there are plans for a version target @kddnewton? We have version targeting built into Prism right now...