diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-29 08:58:39 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-29 08:58:39 +0900 |
commit | b4229c0a90ef902328e09a92fc5c6e884d01c542 (patch) | |
tree | dfab7c68c73dec1efec5fd6284488c38f0451181 /parse.y | |
parent | da3774e5eb6de9dfe5c2ec6f3444c81d22c0e00a (diff) |
Restore `in_kwarg` flag properly
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1557,7 +1557,7 @@ expr : command_call } p_top_expr_body { - p->in_kwarg = !!$<num>2; + p->in_kwarg = !!$<num>3; /*%%%*/ $$ = NEW_CASE3($1, NEW_IN($4, NEW_TRUE(&@4), NEW_FALSE(&@4), &@4), &@$); rb_warn0L(nd_line($$), "Pattern matching is experimental, and the behavior may change in future versions of Ruby!"); |