Add comment
authorKarl Williamson <public@khwilliamson.com>
Sat, 20 Oct 2012 22:18:32 +0000 (16:18 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 20 Oct 2012 23:31:49 +0000 (17:31 -0600)
regcomp.c

index 307e4d5..49f5985 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -232,7 +232,9 @@ typedef struct RExC_state_t {
 #define        HASWIDTH        0x01    /* Known to match non-null strings. */
 
 /* Simple enough to be STAR/PLUS operand; in an EXACTish node must be a single
- * character.  Note that this is not the same thing as REGNODE_SIMPLE */
+ * character.  (There needs to be a case: in the switch statement in regexec.c
+ * for any node marked SIMPLE.)  Note that this is not the same thing as
+ * REGNODE_SIMPLE */
 #define        SIMPLE          0x02
 #define        SPSTART         0x04    /* Starts with * or + */
 #define TRYAGAIN       0x08    /* Weeded out a declaration. */