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:
yui-knk 2024-02-12 13:50:27 +09:00 committed by Yuichiro Kaneko
parent 697ade7bda
commit 93accfdf48

View File

@ -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");