comby-tools/comby

Ruby matching with for in method names

woutersmeenk opened this issue · 3 comments

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

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

Also seeing similar behavior with do_

bit.ly/3diyFsl

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