Documentation for named _
and backreferences in node pattern
#161
Labels
documentation
Improvements or additions to documentation
_
and backreferences in node pattern
#161
I was not aware that in a pattern like this,
_var
acts as a backreference when repeated (ie. the second_var
has to match the first_var
), which caused the issue in rubocop/rubocop#9257.It'd be great to have something in the node pattern docs to explain that.
The text was updated successfully, but these errors were encountered: