summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-03-17 17:28:24 -0600
committerKarl Williamson <khw@cpan.org>2015-03-18 16:14:37 -0600
commita342ef003d32febac1781449c9b9cbc1fc589a49 (patch)
tree881959e1fcb149fb7841b2d0feac6f75dd7c335c /regcomp.c
parentb6d67071cc036ae5056dfe9b570ba76942fc08f4 (diff)
downloadperl-a342ef003d32febac1781449c9b9cbc1fc589a49.tar.gz
regcomp.c: White-space only
Outdent code that the previous commit removed the surrounding block from
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/regcomp.c b/regcomp.c
index 30e93be379..d736a0131a 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -11236,22 +11236,22 @@ S_grok_bslash_N(pTHX_ RExC_state_t *pRExC_state,
/* The tokenizer should have guaranteed validity, but it's possible to
* bypass it by using single quoting, so check. Don't do the check
* here when there are multiple chars; we do it below anyway. */
- if (length_of_hex == 0
- || length_of_hex != (STRLEN)(endchar - RExC_parse) )
- {
- RExC_parse += length_of_hex; /* Includes all the valid */
- RExC_parse += (RExC_orig_utf8) /* point to after 1st invalid */
- ? UTF8SKIP(RExC_parse)
- : 1;
- /* Guard against malformed utf8 */
- if (RExC_parse >= endchar) {
- RExC_parse = endchar;
- }
- vFAIL("Invalid hexadecimal number in \\N{U+...}");
+ if (length_of_hex == 0
+ || length_of_hex != (STRLEN)(endchar - RExC_parse) )
+ {
+ RExC_parse += length_of_hex; /* Includes all the valid */
+ RExC_parse += (RExC_orig_utf8) /* point to after 1st invalid */
+ ? UTF8SKIP(RExC_parse)
+ : 1;
+ /* Guard against malformed utf8 */
+ if (RExC_parse >= endchar) {
+ RExC_parse = endchar;
}
+ vFAIL("Invalid hexadecimal number in \\N{U+...}");
+ }
- RExC_parse = endbrace + 1;
- return TRUE;
+ RExC_parse = endbrace + 1;
+ return TRUE;
}
else { /* Is a multiple character sequence */
SV * substitute_parse;