[前][次][番号順一覧][スレッド一覧]

ruby-changes:61699

From: Nobuyoshi <ko1@a...>
Date: Sat, 13 Jun 2020 23:34:08 +0900 (JST)
Subject: [ruby-changes:61699] 8e5352569b (master): [ripper] use Ripper DSL

https://git.ruby-lang.org/ruby.git/commit/?id=8e5352569b

From 8e5352569bf6386109e2578df534410e1e771af3 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 13 Jun 2020 22:59:26 +0900
Subject: [ripper] use Ripper DSL


diff --git a/parse.y b/parse.y
index e7e4bdd..d159807 100644
--- a/parse.y
+++ b/parse.y
@@ -4951,7 +4951,7 @@ f_paren_args	: '(' f_args rparen https://github.com/ruby/ruby/blob/trunk/parse.y#L4951
 			$$ = new_args_tail(p, Qnone, idFWD_KWREST, idFWD_BLOCK, &@4);
 			$$ = new_args(p, $2, Qnone, idFWD_REST, Qnone, $$, &@4);
 		    /*% %*/
-		    /*% ripper: paren!(params_new($2, Qnone, $4, Qnone, Qnone, Qnone, Qnone)) %*/
+		    /*% ripper: paren!(params!($2, Qnone, $4, Qnone, Qnone, Qnone, Qnone)) %*/
 			SET_LEX_STATE(EXPR_BEG);
 			p->command_start = TRUE;
 		    }
@@ -4966,13 +4966,13 @@ f_paren_args	: '(' f_args rparen https://github.com/ruby/ruby/blob/trunk/parse.y#L4966
 			$$ = new_args_tail(p, Qnone, idFWD_KWREST, idFWD_BLOCK, &@2);
 			$$ = new_args(p, Qnone, Qnone, idFWD_REST, Qnone, $$, &@2);
 		    /*% %*/
-		    /*% ripper: paren!(params_new(Qnone, Qnone, $2, Qnone, Qnone, Qnone, Qnone)) %*/
+		    /*% ripper: paren!(params!(Qnone, Qnone, $2, Qnone, Qnone, Qnone, Qnone)) %*/
 			SET_LEX_STATE(EXPR_BEG);
 			p->command_start = TRUE;
 		    }
                 ;
 
-f_arglist       : f_paren_args
+f_arglist	: f_paren_args
 		|   {
 			$<ctxt>$ = p->ctxt;
 			p->ctxt.in_kwarg = 1;
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]