summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-12-27 17:49:59 +0900
committerNobuyoshi Nakada <[email protected]>2023-12-27 17:50:15 +0900
commitbc002971b6ad483dbf69b8a275c44412bb6ab954 (patch)
treed4999fed21c0dc368d1760ba2cc6fdea7b65de40 /compile.c
parent15c280639e383871eb2688c4cfbbeff48a08bc72 (diff)
[Bug #20094] Distinguish `begin` and parentheses
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index afc2061b12..306272455a 100644
--- a/compile.c
+++ b/compile.c
@@ -7097,6 +7097,7 @@ iseq_compile_pattern_each(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *c
case NODE_COLON2:
case NODE_COLON3:
case NODE_BEGIN:
+ case NODE_BLOCK:
CHECK(COMPILE(ret, "case in literal", node)); // (1)
if (in_single_pattern) {
ADD_INSN1(ret, line_node, dupn, INT2FIX(2));