ruby-changes:48087
From: nobu <ko1@a...>
Date: Tue, 17 Oct 2017 21:30:20 +0900 (JST)
Subject: [ruby-changes:48087] nobu:r60201 (trunk): node.c: adjust indent
nobu 2017-10-17 21:30:11 +0900 (Tue, 17 Oct 2017) New Revision: 60201 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60201 Log: node.c: adjust indent Modified files: trunk/node.c Index: node.c =================================================================== --- node.c (revision 60200) +++ node.c (revision 60201) @@ -420,12 +420,12 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L420 ANN("format: [nd_else]::[nd_vid](constant) = [nd_value]"); ANN("example: X = foo"); if (node->nd_vid) { - F_ID(nd_vid, "constant"); - F_MSG(nd_else, "extension", "not used"); + F_ID(nd_vid, "constant"); + F_MSG(nd_else, "extension", "not used"); } else { - F_MSG(nd_vid, "constant", "0 (see extension field)"); - F_NODE(nd_else, "extension"); + F_MSG(nd_vid, "constant", "0 (see extension field)"); + F_NODE(nd_else, "extension"); } LAST_NODE; F_NODE(nd_value, "rvalue"); @@ -437,12 +437,12 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L437 ANN("example: ary[1] += foo"); F_NODE(nd_recv, "receiver"); F_CUSTOM1(nd_mid, "operator") { - switch (node->nd_mid) { - case 0: A("0 (||)"); break; - case 1: A("1 (&&)"); break; - default: A_ID(node->nd_mid); - } - }; + switch (node->nd_mid) { + case 0: A("0 (||)"); break; + case 1: A("1 (&&)"); break; + default: A_ID(node->nd_mid); + } + } F_NODE(nd_args->nd_head, "index"); LAST_NODE; F_NODE(nd_args->nd_body, "rvalue"); @@ -495,7 +495,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L495 case 1: A("1 (&&)"); break; default: A_ID(node->nd_mid); } - }; + } LAST_NODE; F_NODE(nd_value, "rvalue"); break; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/