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

ruby-changes:71768

From: Nobuyoshi <ko1@a...>
Date: Mon, 18 Apr 2022 18:46:34 +0900 (JST)
Subject: [ruby-changes:71768] 08b6aacc1a (master): Fix the wrong index of the previous component [Bug #18739]

https://git.ruby-lang.org/ruby.git/commit/?id=08b6aacc1a

From 08b6aacc1a14440e0f1644a05238559c6c585e38 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 18 Apr 2022 18:37:09 +0900
Subject: Fix the wrong index of the previous component [Bug #18739]

---
 parse.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parse.y b/parse.y
index d391354bea..c7ed2edea0 100644
--- a/parse.y
+++ b/parse.y
@@ -1785,7 +1785,7 @@ expr		: command_call https://github.com/ruby/ruby/blob/trunk/parse.y#L1785
 		  p_top_expr_body
 		    {
 			pop_pvtbl(p, $<tbl>3);
-			p->ctxt.in_kwarg = $<ctxt>1.in_kwarg;
+			p->ctxt.in_kwarg = $<ctxt>2.in_kwarg;
 		    /*%%%*/
 			$$ = NEW_CASE3($1, NEW_IN($4, NEW_TRUE(&@4), NEW_FALSE(&@4), &@4), &@$);
 		    /*% %*/
-- 
cgit v1.2.1


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

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