Refactor parse.y to replace tIDENTIFIER and tCONSTANT with ident_or_const inline rules
This commit is contained in:
parent
a4328a424b
commit
f5f1951808
Notes:
git
2025-03-14 03:32:22 +00:00
7
parse.y
7
parse.y
@ -3739,7 +3739,7 @@ lhs : user_or_keyword_variable
|
||||
$$ = aryset(p, $1, $3, &@$);
|
||||
/*% ripper: aref_field!($:1, $:3) %*/
|
||||
}
|
||||
| primary_value call_op tIDENTIFIER
|
||||
| primary_value call_op ident_or_const
|
||||
{
|
||||
$$ = attrset(p, $1, $2, $3, &@$);
|
||||
/*% ripper: field!($:1, $:2, $:3) %*/
|
||||
@ -3749,11 +3749,6 @@ lhs : user_or_keyword_variable
|
||||
$$ = attrset(p, $1, idCOLON2, $3, &@$);
|
||||
/*% ripper: field!($:1, $:2, $:3) %*/
|
||||
}
|
||||
| primary_value call_op tCONSTANT
|
||||
{
|
||||
$$ = attrset(p, $1, $2, $3, &@$);
|
||||
/*% ripper: field!($:1, $:2, $:3) %*/
|
||||
}
|
||||
| primary_value tCOLON2 tCONSTANT
|
||||
{
|
||||
/*% ripper: const_path_field!($:1, $:3) %*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user