Project

General

Profile

Feature #14579 ยป hash_value_omission.diff

shugo (Shugo Maeda), 03/06/2018 01:51 PM

View differences:

parse.y
4252 4252
		    /*% %*/
4253 4253
		    /*% ripper: assoc_new!($1, $2) %*/
4254 4254
		    }
4255
		| tLABEL
4256
		    {
4257
		    /*%%%*/
4258
                        NODE *val = gettable(p, $1, &@$);
4259
			if (!val) val = NEW_BEGIN(0, &@$);
4260
			$$ = list_append(p, NEW_LIST(NEW_LIT(ID2SYM($1), &@1), &@$), val);
4261
		    /*% %*/
4262
		    /*% ripper: assoc_new!($1, id_is_var(p, get_id($1)) ? var_ref!($1) : vcall!($1)) %*/
4263
		    }
4255 4264
		| tSTRING_BEG string_contents tLABEL_END arg_value
4256 4265
		    {
4257 4266
		    /*%%%*/