Fix [BUG] unknown node for NODE_ENCODING
It should be `return` instead of `break`, otherwise `[BUG] dump_node: unknown node: NODE_ENCODING` happens.
This commit is contained in:
parent
697ade7bda
commit
93accfdf48
@ -1155,7 +1155,7 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
|
||||
ANN("format: [enc]");
|
||||
ANN("example: __ENCODING__");
|
||||
F_VALUE(enc, rb_node_encoding_val(node), "enc");
|
||||
break;
|
||||
return;
|
||||
|
||||
case NODE_ERROR:
|
||||
ANN("Broken input recovered by Error Tolerant mode");
|
||||
|
Loading…
x
Reference in New Issue
Block a user