Closed luke-gru closed 3 weeks ago
@kddnewton Could you please review this change?
Okay, thanks for the review. I've made the changes you mentioned.
Sorry if I was unclear, but this appears to have gone in the opposite direction from what I said. Instead of returning nil
if those conditions are met, now it tries to highlight the name. I'm saying we should keep the previous behavior for RubyVM::AbstractSyntaxTree and switch Prism to match, which would be returning nil
in the case that there are no arguments.
such as:
p = Proc.new
This is now highlighted, and it wasn't before.