Skip to content

Commit 686b165

Browse files
committed
[PRISM] Fix indentation in switch [ci skip]
1 parent 33306a0 commit 686b165

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

prism_compile.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6058,23 +6058,23 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
60586058
// def foo(a, (b, *c, d), e = 1, *f, g, (h, *i, j), k:, l: 1, **m, &n)
60596059
// ^^^^^^^^^^
60606060
case PM_MULTI_TARGET_NODE: {
6061-
required_multis_hidden_index = local_index;
6062-
local = rb_make_temporary_id(local_index);
6063-
local_table_for_iseq->ids[local_index] = local;
6064-
break;
6061+
required_multis_hidden_index = local_index;
6062+
local = rb_make_temporary_id(local_index);
6063+
local_table_for_iseq->ids[local_index] = local;
6064+
break;
60656065
}
60666066
// def foo(a, (b, *c, d), e = 1, *f, g, (h, *i, j), k:, l: 1, **m, &n)
60676067
// ^
60686068
case PM_REQUIRED_PARAMETER_NODE: {
6069-
pm_required_parameter_node_t * param = (pm_required_parameter_node_t *)required;
6069+
pm_required_parameter_node_t * param = (pm_required_parameter_node_t *)required;
60706070

6071-
if (!PM_NODE_FLAG_P(required, PM_PARAMETER_FLAGS_REPEATED_PARAMETER)) {
6072-
pm_insert_local_index(param->name, local_index, index_lookup_table, local_table_for_iseq, scope_node);
6073-
}
6074-
break;
6071+
if (!PM_NODE_FLAG_P(required, PM_PARAMETER_FLAGS_REPEATED_PARAMETER)) {
6072+
pm_insert_local_index(param->name, local_index, index_lookup_table, local_table_for_iseq, scope_node);
6073+
}
6074+
break;
60756075
}
60766076
default: {
6077-
rb_bug("Unsupported node in requireds in parameters %s", pm_node_type_to_str(PM_NODE_TYPE(node)));
6077+
rb_bug("Unsupported node in requireds in parameters %s", pm_node_type_to_str(PM_NODE_TYPE(node)));
60786078
}
60796079
}
60806080
}

0 commit comments

Comments
 (0)