summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2022-09-03 15:18:43 +0900
committernagachika <nagachika@ruby-lang.org>2022-09-03 15:18:43 +0900
commitffd3d83ea8ccf111061a0f03036e5a093bb03674 (patch)
tree128c7bcf8f51c45d6d70d0ce6064de4511efc635 /parse.y
parent5473c1064d5e82d706b554f2fe5a5b41900f6b14 (diff)
merge revision(s) 08b6aacc1a14440e0f1644a05238559c6c585e38: [Backport #18739]
Fix the wrong index of the previous component [Bug #18739] --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 17c7b38e4c..4e05bfd672 100644
--- a/parse.y
+++ b/parse.y
@@ -1783,7 +1783,7 @@ expr : command_call
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), &@$);
/*% %*/