summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorKazuki Tsujimoto <kazuki@callcc.net>2021-08-19 17:03:17 +0900
committerKazuki Tsujimoto <kazuki@callcc.net>2021-08-19 17:07:58 +0900
commitecb6d6a4ef058b5598a7633c3921eeab08ce11c6 (patch)
tree0df5b09fae002fff45b63ccf6ca3afc07a9a9bae /parse.y
parent00d66f7ec215406b5977fb490b06dae71a4fede6 (diff)
Allow omission of parentheses in one line pattern matching [Feature #16182]
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index cd6971055a..897b46838e 100644
--- a/parse.y
+++ b/parse.y
@@ -1732,7 +1732,7 @@ expr : command_call
p->ctxt.in_kwarg = 1;
}
{$<tbl>$ = push_pvtbl(p);}
- p_expr
+ p_top_expr_body
{pop_pvtbl(p, $<tbl>4);}
{
p->ctxt.in_kwarg = $<ctxt>3.in_kwarg;
@@ -1750,7 +1750,7 @@ expr : command_call
p->ctxt.in_kwarg = 1;
}
{$<tbl>$ = push_pvtbl(p);}
- p_expr
+ p_top_expr_body
{pop_pvtbl(p, $<tbl>4);}
{
p->ctxt.in_kwarg = $<ctxt>3.in_kwarg;