Skip to content

Commit

Permalink
Rename to backref_with
Browse files Browse the repository at this point in the history
  • Loading branch information
S-H-GAMELINKS authored and nobu committed Jan 2, 2025
1 parent 1686c6b commit 3eebc81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -2911,7 +2911,7 @@ rb_parser_ary_free(rb_parser_t *p, rb_parser_ary_t *ary)
/*
* parameterizing rules
*/
%rule backref_with_rhs(value) <node>
%rule backref_with(value) <node>
: backref tOP_ASGN lex_ctxt value
{
VALUE MAYBE_UNUSED(e) = rb_backref_error(p, $1);
Expand Down Expand Up @@ -3306,7 +3306,7 @@ command_asgn : lhs '=' lex_ctxt command_rhs
/*% ripper: defs!(*$:head[0..2], $:args, $:$) %*/
local_pop(p);
}
| backref_with_rhs(command_rhs)
| backref_with(command_rhs)
;

endless_command : command
Expand Down Expand Up @@ -3878,7 +3878,7 @@ arg : lhs '=' lex_ctxt arg_rhs
$$ = new_const_op_assign(p, NEW_COLON3($2, &loc), $3, $5, $4, &@$);
/*% ripper: opassign!(top_const_field!($:2), $:3, $:5) %*/
}
| backref_with_rhs(arg_rhs)
| backref_with(arg_rhs)
| arg tDOT2 arg
{
value_expr($1);
Expand Down

0 comments on commit 3eebc81

Please sign in to comment.