Project

General

Profile

Bug #15673 ยป ripper.patch

kddeisz (Kevin Deisz), 03/18/2019 07:33 PM

View differences:

parse.y
500 500
#define get_value(val) ripper_get_value(val)
501 501
static VALUE assignable(struct parser_params*,VALUE);
502 502
static int id_is_var(struct parser_params *p, ID id);
503
static bool parser_numbered_param(struct parser_params *p, unsigned long n);
503 504

  
504 505
#define method_cond(p,node,loc) (node)
505 506
#define call_bin_op(p, recv,id,arg1,op_loc,loc) dispatch3(binary, (recv), STATIC_ID2SYM(id), (arg1))
......
3899 3900
		    /*%%%*/
3900 3901
			if (!($$ = gettable(p, $1, &@$))) $$ = NEW_BEGIN(0, &@$);
3901 3902
		    /*%
3902
			if (id_is_var(p, get_id($1))) {
3903
			if (parser_numbered_param(p, $1) || id_is_var(p, get_id($1))) {
3903 3904
			    $$ = dispatch1(var_ref, $1);
3904 3905
			}
3905 3906
			else {