summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-18 18:37:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-18 18:37:09 +0900
commit08b6aacc1a14440e0f1644a05238559c6c585e38 (patch)
tree6d936f6d713a6bfed24e5017e26d2c6d450717a6 /parse.y
parentb0666d64176457786c854c12c79f7beae392bee0 (diff)
Fix the wrong index of the previous component [Bug #18739]
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 d391354bea..c7ed2edea0 100644
--- a/parse.y
+++ b/parse.y
@@ -1785,7 +1785,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), &@$);
/*% %*/