summaryrefslogtreecommitdiff
path: root/regparse.c
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-02 01:06:28 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-02 01:06:28 +0000
commitd359ee3f553c05949cacdd15efea07ea4a936435 (patch)
tree0ebf50df2e7c1c266301bebabd379837181b4e5b /regparse.c
parentb6e33be8db615f2dfeb4e2835a76f7f456de69e1 (diff)
downloadbundler-d359ee3f553c05949cacdd15efea07ea4a936435.tar.gz
reformat code [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regparse.c')
-rw-r--r--regparse.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/regparse.c b/regparse.c
index 401dbd4b17..6152215279 100644
--- a/regparse.c
+++ b/regparse.c
@@ -5760,19 +5760,11 @@ quantify_property_node(Node **np, ScanEnv* env, const char* propname, char repet
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);
}