diff options
| -rw-r--r-- | parse.y | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -2908,16 +2908,12 @@ block_param : f_arg ',' f_block_optarg ',' f_rest_arg opt_block_args_tail } | f_arg ',' { -#ifndef RIPPER + /*%%%*/ /* magic number for rest_id in iseq_set_arguments() */ const ID excessed_comma = 1; -#else - const VALUE excessed_comma = - /*% ripper: excessed_comma! %*/ - ; -#endif - $$ = new_args_tail(p, Qnone, Qnone, Qnone, &@1); - $$ = new_args(p, $1, Qnone, excessed_comma, Qnone, $$, &@$); + $$ = new_args(p, $1, Qnone, excessed_comma, Qnone, new_args_tail(p, Qnone, Qnone, Qnone, &@1), &@$); + /*% %*/ + /*% ripper: new_args(p, $1, Qnone, excessed_comma!, Qnone, new_args_tail(p, Qnone, Qnone, Qnone, NULL), NULL) %*/ } | f_arg ',' f_rest_arg ',' f_arg opt_block_args_tail { |
