Rename to backref_with

This commit is contained in:
S-H-GAMELINKS 2024-10-28 22:22:34 +09:00 committed by Nobuyoshi Nakada
parent 1686c6b787
commit 3eebc81041
Notes: git 2025-01-02 08:11:51 +00:00

View file

@ -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);
@ -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
@ -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);