summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-08-15 21:45:05 -0600
committerKarl Williamson <public@khwilliamson.com>2012-11-19 17:13:01 -0700
commita0947d7b65b4267c8257d473fcf90e6c0d46bdf1 (patch)
treed9c16aebe4d45840695f42cfc97a90a2ae9dd821 /regcomp.h
parent87cad4c09451b76f5dcf8b493f84dc07cc915ce6 (diff)
downloadperl-a0947d7b65b4267c8257d473fcf90e6c0d46bdf1.tar.gz
regexes: Add \v to table of latin1 char classes
This will be used in future commits to allow \v and \V to be treated consistently with other character classes. (Doing the same for \h isn't necessary, as it matches identically to [:blank:] in the entire Unicode range.)
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/regcomp.h b/regcomp.h
index e9c9c4ca75..1c7f454333 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -427,6 +427,11 @@ struct regnode_charclass_class {
#define ANYOF_VERTWS ((ANYOF_MAX)+0)
#define ANYOF_NVERTWS ((ANYOF_MAX)+1)
+#if (ANYOF_VERTWS != (_CC_VERTSPACE) * 2) \
+ || (_CC_VERTSPACE != _HIGHEST_REGCOMP_DOT_H_SYNC)
+# error Problem with handy.h _CC_VERTSPACE #define
+#endif
+
#define ANYOF_HORIZWS ((ANYOF_MAX)+2)
#define ANYOF_NHORIZWS ((ANYOF_MAX)+3)