From 93accfdf48d38160a11c2f0f8ed978f4cdbfe3cd Mon Sep 17 00:00:00 2001 From: yui-knk Date: Mon, 12 Feb 2024 13:50:27 +0900 Subject: [PATCH] Fix [BUG] unknown node for NODE_ENCODING It should be `return` instead of `break`, otherwise `[BUG] dump_node: unknown node: NODE_ENCODING` happens. --- node_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_dump.c b/node_dump.c index 5bf9591115..69ab98c883 100644 --- a/node_dump.c +++ b/node_dump.c @@ -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");