mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[PRISM] Do not hide syntactically required parentheses within macros
It makes code formatters confused when auto indenting.
This commit is contained in:
parent
185b7e92a3
commit
f466afa176
1 changed files with 23 additions and 23 deletions
|
@ -4508,7 +4508,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
|
|||
pm_node_t *keyword_parameter_node = keywords_list->nodes[i];
|
||||
pm_constant_id_t name;
|
||||
|
||||
switch PM_NODE_TYPE(keyword_parameter_node) {
|
||||
switch (PM_NODE_TYPE(keyword_parameter_node)) {
|
||||
// def foo(a, (b, *c, d), e = 1, *f, g, (h, *i, j), k:, l: 1, **m, &n)
|
||||
// ^^^^
|
||||
case PM_OPTIONAL_KEYWORD_PARAMETER_NODE: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue