summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-21 15:11:50 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-23 13:50:42 +0900
commit0c450b86476322ea4c407d0de4d7d1c5d8523126 (patch)
treee99340d23ea93bbbd0ee7e8e113f8e66a7d8ac3f /parse.y
parente70206f5701fca5cce38dbfac8ffaa0d9a5c61a3 (diff)
`begin ... end` is not a literal
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3950
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 50d24dfef71..1637921a2bd 100644
--- a/parse.y
+++ b/parse.y
@@ -488,7 +488,7 @@ static int value_expr_gen(struct parser_params*,NODE*);
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*);