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

ruby-changes:53902

From: duerst <ko1@a...>
Date: Sun, 2 Dec 2018 10:06:36 +0900 (JST)
Subject: [ruby-changes:53902] duerst:r66122 (trunk): reformat code [ci skip]

duerst	2018-12-02 10:06:28 +0900 (Sun, 02 Dec 2018)

  New Revision: 66122

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66122

  Log:
    reformat code [ci skip]

  Modified files:
    trunk/regparse.c
Index: regparse.c
===================================================================
--- regparse.c	(revision 66121)
+++ regparse.c	(revision 66122)
@@ -5760,19 +5760,11 @@ quantify_property_node(Node **np, ScanEn https://github.com/ruby/ruby/blob/trunk/regparse.c#L5760
   r = create_property_node(np, env, propname);
   if (r != 0) return r;
   switch (repetitions) {
-    case '?':
-      upper = 1;
-      break;
-    case '+':
-      lower = 1;
-      break;
-    case '*':
-      break;
-    case '2':
-      lower = upper = 2;
-      break;
-    default:
-      return ONIGERR_PARSER_BUG;
+    case '?':  upper = 1;          break;
+    case '+':  lower = 1;          break;
+    case '*':                      break;
+    case '2':  lower = upper = 2;  break;
+    default :  return ONIGERR_PARSER_BUG;
   }
   return quantify_node(np, lower, upper);
 }

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

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