regcomp.c: Add comments
authorKarl Williamson <khw@cpan.org>
Sat, 4 Aug 2018 19:11:52 +0000 (13:11 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 5 Aug 2018 11:52:48 +0000 (05:52 -0600)
regcomp.c

index 2272bd4..0e517ba 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -16747,6 +16747,9 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
                     }
 
                     RExC_parse++;
+
+                    /* White space is allowed adjacent to the braces and after
+                     * any '^', even when not under /x */
                     while (isSPACE(*RExC_parse)) {
                          RExC_parse++;
                    }
@@ -16973,7 +16976,8 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
                             }
                        }
                     }
-                }
+                } /* End of actually getting the values in pass 2 */
+
                RExC_parse = e + 1;
                 namedclass = ANYOF_UNIPROP;  /* no official name, but it's
                                                 named */