Feature #19567 ยป 0001-Add-Oxford-Comma-support.patch
parse.y | ||
---|---|---|
/*% %*/
|
||
/*% ripper: args_add!($1, $3) %*/
|
||
}
|
||
| args ',' keyword_and arg_value
|
||
{
|
||
/*%%%*/
|
||
$$ = last_arg_append(p, $1, $4, &@$);
|
||
/*% %*/
|
||
/*% ripper: args_add!($1, $4) %*/
|
||
}
|
||
| args ',' tSTAR arg_value
|
||
{
|
||
/*%%%*/
|
||
... | ... | |
/*% %*/
|
||
/*% ripper: rb_ary_push($1, get_value($3)) %*/
|
||
}
|
||
| f_arg ',' keyword_and f_arg_item
|
||
{
|
||
/*%%%*/
|
||
$$ = $1;
|
||
$$->nd_plen++;
|
||
$$->nd_next = block_append(p, $$->nd_next, $4->nd_next);
|
||
rb_discard_node(p, $4);
|
||
/*% %*/
|
||
/*% ripper: rb_ary_push($1, get_value($4)) %*/
|
||
}
|
||
;
|
||