diff options
Diffstat (limited to 'node_dump.c')
-rw-r--r-- | node_dump.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/node_dump.c b/node_dump.c index fd6fa20aa4..bf13e6d5d1 100644 --- a/node_dump.c +++ b/node_dump.c @@ -678,7 +678,8 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) ANN("match expression (against $_ implicitly)"); ANN("format: [nd_lit] (in condition)"); ANN("example: if /foo/; foo; end"); - F_LIT(nd_lit, RNODE_MATCH, "regexp"); + LAST_NODE; + F_VALUE(string, rb_node_regx_string_val(node), "string"); return; case NODE_MATCH2: @@ -750,6 +751,14 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) F_VALUE(val, rb_node_imaginary_literal_val(node), "val"); return; + case NODE_REGX: + ANN("regexp literal"); + ANN("format: [string]"); + ANN("example: /foo/"); + LAST_NODE; + F_VALUE(string, rb_node_regx_string_val(node), "string"); + return; + case NODE_ONCE: ANN("once evaluation"); ANN("format: [nd_body]"); |