ruby-changes:64499
From: Nobuyoshi <ko1@a...>
Date: Wed, 23 Dec 2020 13:51:00 +0900 (JST)
Subject: [ruby-changes:64499] 0c450b8647 (master): `begin ... end` is not a literal
https://git.ruby-lang.org/ruby.git/commit/?id=0c450b8647 From 0c450b86476322ea4c407d0de4d7d1c5d8523126 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 21 Dec 2020 15:11:50 +0900 Subject: `begin ... end` is not a literal diff --git a/parse.y b/parse.y index 50d24df..1637921 100644 --- a/parse.y +++ b/parse.y @@ -488,7 +488,7 @@ static int value_expr_gen(struct parser_params*,NODE*); https://github.com/ruby/ruby/blob/trunk/parse.y#L488 static void void_expr(struct parser_params*,NODE*); static NODE *remove_begin(NODE*); static NODE *remove_begin_all(NODE*); -#define value_expr(node) value_expr_gen(p, (node) = remove_begin(node)) +#define value_expr(node) value_expr_gen(p, (node)) static NODE *void_stmts(struct parser_params*,NODE*); static void reduce_nodes(struct parser_params*,NODE**); static void block_dup_check(struct parser_params*,NODE*,NODE*); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/