mruby-compiler: place newline before else

The mruby C style places `else` on its own line. Reformat the
remaining `} else if (...)` occurrence in the C action block of
NODE_SYMBOLS dump.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2026-04-27 10:37:13 +09:00
parent 16f1f4418a
commit e4cd7e6daf
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -8690,7 +8690,8 @@ dump_node(mrb_state *mrb, node *tree, int offset)
node *item = list->car;
if (item->car == 0 && item->cdr == 0) {
/* Skip separator (0 . 0) */
} else if (item->car && item->cdr) {
}
else if (item->car && item->cdr) {
/* String item: (len . str) */
dump_prefix(offset+1, lineno);
int len = node_to_int(item->car);
+2 -1
View File
@@ -15879,7 +15879,8 @@ dump_node(mrb_state *mrb, node *tree, int offset)
node *item = list->car;
if (item->car == 0 && item->cdr == 0) {
/* Skip separator (0 . 0) */
} else if (item->car && item->cdr) {
}
else if (item->car && item->cdr) {
/* String item: (len . str) */
dump_prefix(offset+1, lineno);
int len = node_to_int(item->car);