Skip to content
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

Ruby matching with for in method names #330

Open
woutersmeenk opened this issue Jan 31, 2022 · 3 comments
Open

Ruby matching with for in method names #330

woutersmeenk opened this issue Jan 31, 2022 · 3 comments

Comments

@woutersmeenk
Copy link

Describe the bug
When matching ruby code expression names that contain _for are valid matches to not match

Reproducing
bit.ly/3Hezuwj

When bla_for is replaced with blafor the above example does match

Expected behavior
I expected the above example (without modification) to match.

Additional context
It seems the _for in the expression name is being parsed as a delimiter

@rvantonder
Copy link
Member

yep, this is wrong behavior. thanks for the report, will have a look at a fix!

@schreiaj
Copy link

schreiaj commented Aug 8, 2022

Also seeing similar behavior with do_

bit.ly/3diyFsl

@oskarkook
Copy link

oskarkook commented Nov 6, 2022

Same in Elixir with end for example: bit.ly/3NE5nSR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants