-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block parameters prefixed with underscore are incorrectly highlighted #2837
Comments
Can I work on this issue? |
Sure! |
(I don't mind if we do this, but I wonder if this was originally an intentional decision due to the |
It cannot have been intentional, because it currently assigns the |
What: Removes the distinction between block variables prefixed with underscore and those not prefixed with underscore. Why: As per the github issue: the leading underscore is just a convention. From Ruby's perspective, it's still a parameter and even referring to it still works.
I'm sorry I did not send a message before, life happened and couldn't work on this 🙏 |
Completed in #2972 |
Our grammar file is not properly handling block parameters that are prefixed with underscore. For example:
We might be missing
_
as a valid character in the regex.The text was updated successfully, but these errors were encountered: