diff options
author | yui-knk <[email protected]> | 2024-02-10 10:05:18 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-02-21 08:06:48 +0900 |
commit | e7ab5d891c3272e72caef6879e90ad8ae4e13dea () | |
tree | 018b9b38b1ef3aaf87b6a6a8baf8a72d78460b27 /node_dump.c | |
parent | 97d4363d3b4125d30120ab07cb69d3fc34b44bfc (diff) |
Introduce NODE_REGX to manage regexp literal
-rw-r--r-- | node_dump.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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"); 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_ONCE: ANN("once evaluation"); ANN("format: [nd_body]"); |