mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Rename to backref_with
This commit is contained in:
parent
1686c6b787
commit
3eebc81041
Notes:
git
2025-01-02 08:11:51 +00:00
1 changed files with 3 additions and 3 deletions
6
parse.y
6
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) <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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue