summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-10-20 16:18:32 -0600
committerKarl Williamson <public@khwilliamson.com>2012-10-20 17:31:49 -0600
commit2fd926759fe936aa06eed72e6670961f873fd976 (patch)
tree34f0603bc319d08e06b4d0a2d3c76f7371904197 /regcomp.c
parent07725c18fbb2dc80688a7eb6decf6bc304266d09 (diff)
downloadperl-2fd926759fe936aa06eed72e6670961f873fd976.tar.gz
Add comment
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 307e4d5126..49f5985c70 100644
--- 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. */