ruby-changes:64214
From: Nobuyoshi <ko1@a...>
Date: Wed, 16 Dec 2020 22:58:49 +0900 (JST)
Subject: [ruby-changes:64214] 9c859f4b3c (master): Ripper: Pass callback result to alias_error as well as other errors
https://git.ruby-lang.org/ruby.git/commit/?id=9c859f4b3c From 9c859f4b3c2098af590d3e0eadc2d1011fb32bb8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 16 Dec 2020 22:53:43 +0900 Subject: Ripper: Pass callback result to alias_error as well as other errors [Bug #17345] diff --git a/parse.y b/parse.y index 9933fcf..d1ee85d 100644 --- a/parse.y +++ b/parse.y @@ -607,7 +607,6 @@ static ID ripper_get_id(VALUE); https://github.com/ruby/ruby/blob/trunk/parse.y#L607 static VALUE ripper_get_value(VALUE); #define get_value(val) ripper_get_value(val) #define get_num(num) (int)get_id(num) -#define get_cval(val) RNODE(val)->nd_cval static VALUE assignable(struct parser_params*,VALUE); static int id_is_var(struct parser_params *p, ID id); @@ -1462,7 +1461,7 @@ stmt : keyword_alias fitem {SET_LEX_STATE(EXPR_FNAME|EXPR_FITEM);} fitem https://github.com/ruby/ruby/blob/trunk/parse.y#L1461 yyerror1(&@3, mesg); $$ = NEW_BEGIN(0, &@$); /*% %*/ - /*% ripper[error]: alias_error!(ERR_MESG(), get_cval($3)) %*/ + /*% ripper[error]: alias_error!(ERR_MESG(), $3) %*/ } | keyword_undef undef_list { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/