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

ruby-changes:56586

From: Nobuyoshi <ko1@a...>
Date: Wed, 17 Jul 2019 17:05:12 +0900 (JST)
Subject: [ruby-changes:56586] Nobuyoshi Nakada: 0e23e0c3a0 (master): Adjust indent [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=0e23e0c3a0

From 0e23e0c3a0c1053c230205117b82cc8156f3a26a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 17 Jul 2019 15:55:50 +0900
Subject: Adjust indent [ci skip]


diff --git a/parse.y b/parse.y
index 6389730..a950208 100644
--- a/parse.y
+++ b/parse.y
@@ -747,7 +747,8 @@ new_array_pattern_tail(struct parser_params *p, VALUE pre_args, VALUE has_rest, https://github.com/ruby/ruby/blob/trunk/parse.y#L747
     NODE *t;
     if (has_rest) {
 	rest_arg = dispatch1(var_field, rest_arg ? rest_arg : Qnil);
-    } else {
+    }
+    else {
 	rest_arg = Qnil;
     }
     t = rb_node_newnode(NODE_ARYPTN, pre_args, rest_arg, post_args, &NULL_LOC);
@@ -4040,7 +4041,7 @@ p_kwrest	: kwrest_mark tIDENTIFIER https://github.com/ruby/ruby/blob/trunk/parse.y#L4041
 		    }
 		;
 
-p_value	: p_primitive
+p_value 	: p_primitive
 		| p_primitive tDOT2 p_primitive
 		    {
 		    /*%%%*/
@@ -4162,7 +4163,7 @@ p_var_ref	: '^' tIDENTIFIER https://github.com/ruby/ruby/blob/trunk/parse.y#L4163
 		    }
 		;
 
-p_const	: tCOLON3 cname
+p_const 	: tCOLON3 cname
 		    {
 		    /*%%%*/
 			$$ = NEW_COLON3($2, &@$);
@@ -11234,7 +11235,8 @@ new_array_pattern(struct parser_params *p, NODE *constant, NODE *pre_arg, NODE * https://github.com/ruby/ruby/blob/trunk/parse.y#L11235
 	NODE *pre_args = NEW_LIST(pre_arg, loc);
 	if (apinfo->pre_args) {
 	    apinfo->pre_args = list_concat(pre_args, apinfo->pre_args);
-	} else {
+	}
+	else {
 	    apinfo->pre_args = pre_args;
 	}
     }
@@ -11258,10 +11260,12 @@ new_array_pattern_tail(struct parser_params *p, NODE *pre_args, int has_rest, ID https://github.com/ruby/ruby/blob/trunk/parse.y#L11260
     if (has_rest) {
 	if (rest_arg) {
 	    apinfo->rest_arg = assignable(p, rest_arg, 0, loc);
-	} else {
+	}
+	else {
 	    apinfo->rest_arg = NODE_SPECIAL_NO_NAME_REST;
 	}
-    } else {
+    }
+    else {
 	apinfo->rest_arg = NULL;
     }
 
-- 
cgit v0.10.2


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

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