diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-02-26 13:20:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-02-26 13:20:43 +0900 |
commit | ef00c6da884499c8fab8531a3780e547e87c04fa (patch) | |
tree | 3a916b0415e1a3bebabb8ebc983bef3d37588ed2 /re.c | |
parent | 672b81b090fb346b71f1c8e87a51a7c33f239df4 (diff) |
Adjust `else` style to be consistent in each files [ci skip]
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -2979,7 +2979,8 @@ escape_asis: rb_str_buf_cat(buf, (char *)&c, 1); } break; - } else { + } + else { /* potential change of extended option */ int invert = 0; int local_extend = 0; @@ -3011,7 +3012,8 @@ escape_asis: int local_options = options; if (local_extend == 1) { local_options |= ONIG_OPTION_EXTEND; - } else { + } + else { local_options &= ~ONIG_OPTION_EXTEND; } @@ -3021,7 +3023,8 @@ escape_asis: local_options, 1); if (ret < 0) return ret; goto begin_scan; - } else { + } + else { /* change extended flag for rest of expression */ extended_mode = local_extend == 1; goto fallthrough; @@ -3039,7 +3042,8 @@ escape_asis: } } } - } else if (!in_char_class && recurse) { + } + else if (!in_char_class && recurse) { parens++; } /* FALLTHROUGH */ |