[前][次][番号順一覧][スレッド一覧]

ruby-changes:33637

From: nobu <ko1@a...>
Date: Fri, 25 Apr 2014 16:13:01 +0900 (JST)
Subject: [ruby-changes:33637] nobu:r45718 (trunk): node.c: indent

nobu	2014-04-25 16:12:58 +0900 (Fri, 25 Apr 2014)

  New Revision: 45718

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45718

  Log:
    node.c: indent
    
    * node.c (dump_node): adjust indent to "ruby-style.el".

  Modified files:
    trunk/node.c
Index: node.c
===================================================================
--- node.c	(revision 45717)
+++ node.c	(revision 45718)
@@ -169,7 +169,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L169
 	ANN("for statement");
 	ANN("format: for * in [nd_iter] do [nd_body] end");
 	ANN("example: for i in 1..3 do foo end");
-	iter:
+      iter:
 	F_NODE(nd_iter, "iteration receiver");
 	LAST_NODE;
 	F_NODE(nd_body, "body");
@@ -189,7 +189,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L189
 	ANN("return statement");
 	ANN("format: return [nd_stts]");
 	ANN("example: return 1");
-        jump:
+      jump:
 	LAST_NODE;
 	F_NODE(nd_stts, "value");
 	break;
@@ -252,7 +252,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L252
 	ANN("|| operator");
 	ANN("format: [nd_1st] || [nd_2nd]");
 	ANN("example: foo && bar");
-	andor:
+      andor:
 	F_NODE(nd_1st, "left expr");
 	LAST_NODE;
 	F_NODE(nd_2nd, "right expr");
@@ -297,7 +297,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L297
 	ANN("class variable assignment");
 	ANN("format: [nd_vid](cvar) = [nd_value]");
 	ANN("example: @@x = foo");
-	asgn:
+      asgn:
 	F_ID(nd_vid, "variable");
 	LAST_NODE;
 	F_NODE(nd_value, "rvalue");
@@ -350,9 +350,9 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L350
 	F_ID(nd_next->nd_aid, "writer");
 	F_CUSTOM1(nd_next->nd_mid, "operator", {
 	   switch (node->nd_next->nd_mid) {
-	   case 0: A("0 (||)"); break;
-	   case 1: A("1 (&&)"); break;
-	   default: A_ID(node->nd_next->nd_mid);
+	     case 0: A("0 (||)"); break;
+	     case 1: A("1 (&&)"); break;
+	     default: A_ID(node->nd_next->nd_mid);
 	   }
 	});
 	LAST_NODE;
@@ -368,7 +368,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L368
 	ANN("assignment with || operator");
 	ANN("format: [nd_head] ||= [nd_value]");
 	ANN("example: foo ||= bar");
-	asgn_andor:
+      asgn_andor:
 	F_NODE(nd_head, "variable");
 	LAST_NODE;
 	F_NODE(nd_value, "rvalue");
@@ -423,7 +423,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L423
 	ANN("return arguments");
 	ANN("format: [ [nd_head], [nd_next].. ] (length: [nd_alen])");
 	ANN("example: return 1, 2, 3");
-	ary:
+      ary:
 	F_LONG(nd_alen, "length");
 	F_NODE(nd_head, "element");
 	LAST_NODE;
@@ -476,7 +476,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L476
 	ANN("class variable reference");
 	ANN("format: [nd_vid](cvar)");
 	ANN("example: @@x");
-        var:
+      var:
 	F_ID(nd_vid, "local variable");
 	break;
 
@@ -546,7 +546,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L546
 	ANN("xstring literal");
 	ANN("format: [nd_lit]");
 	ANN("example: `foo`");
-	lit:
+      lit:
 	F_LIT(nd_lit, "literal");
 	break;
 
@@ -574,7 +574,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L574
 	ANN("symbol literal with interpolation");
 	ANN("format: [nd_lit]");
 	ANN("example: :\"foo#{ bar }baz\"");
-	dlit:
+      dlit:
 	F_LIT(nd_lit, "literal");
 	F_NODE(nd_next->nd_head, "preceding string");
 	LAST_NODE;
@@ -731,7 +731,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L731
 	ANN("flip-flop condition (excl.)");
 	ANN("format: [nd_beg]...[nd_end]");
 	ANN("example: if (x==1)...(x==5); foo; end");
-	dot:
+      dot:
 	F_NODE(nd_beg, "begin");
 	LAST_NODE;
 	F_NODE(nd_end, "end");

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]