summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-09-02 23:12:22 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-09-30 22:15:28 +0900
commit7b2bea42a245f2e80b5d2700963fd6b143f6d6b8 (patch)
tree59bc4509242d0be9f92dc8a5a95d65d6903a4455 /node.c
parent65e8a293892800d2201899de51d19ed7ce362bbf (diff)
Unfreeze string-literal-only interpolated string-literal
[Feature #17104]
Diffstat (limited to 'node.c')
-rw-r--r--node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.c b/node.c
index 7c291a80ad..936043794a 100644
--- a/node.c
+++ b/node.c
@@ -741,6 +741,7 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
ANN("example: :\"foo#{ bar }baz\"");
dlit:
F_LIT(nd_lit, "preceding string");
+ if (!node->nd_next) return;
F_NODE(nd_next->nd_head, "interpolation");
LAST_NODE;
F_NODE(nd_next->nd_next, "tailing strings");