diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-09-13 23:33:19 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-09-15 01:09:07 +0900 |
| commit | 9cb33aad55e0a2cded3b09b0509b9c53fb0fa5ae (patch) | |
| tree | dd7c0bc7780efe838d9fdb865fd087fb0068a36e /parse.y | |
| parent | 864bb8680cee48a2bed85703dc2e4070728362d4 (diff) | |
[Bug #19877] Fix flip-flop in block
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8440
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12472,6 +12472,10 @@ cond0(struct parser_params *p, NODE *node, enum cond_type type, const YYLTYPE *l return NEW_MATCH2(node, NEW_GVAR(idLASTLINE, loc), loc); + case NODE_BLOCK: + node->nd_end->nd_head = cond0(p, node->nd_end->nd_head, type, loc); + break; + case NODE_AND: case NODE_OR: node->nd_1st = cond0(p, node->nd_1st, COND_IN_COND, loc); |
