diff --git a/parse.y b/parse.y index d7cd7f77fbd74c..12fac7d50e5a34 100644 --- a/parse.y +++ b/parse.y @@ -2911,7 +2911,7 @@ rb_parser_ary_free(rb_parser_t *p, rb_parser_ary_t *ary) /* * parameterizing rules */ -%rule backref_with_rhs(value) +%rule backref_with(value) : 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);