summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-01-30 14:52:46 -0700
committerKarl Williamson <khw@cpan.org>2017-06-01 07:05:15 -0600
commiteb7486de5e577623ae719baf1b442bde992cb7c7 (patch)
tree0deb27559c5d6a3c3fefa923bd7196b5830e5897 /regcomp.c
parentca31f56c9ea43ef6c05c38da5542fb95a322f2c1 (diff)
downloadperl-eb7486de5e577623ae719baf1b442bde992cb7c7.tar.gz
Slightly change -Dr output of regex ANYOF nodes
This changes to precede each literal '[' in a [...] class with a backslash to better make is standout as a literal
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index f9d56c1813..199fde9d01 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -119,7 +119,7 @@ typedef struct scan_frame {
/* Certain characters are output as a sequence with the first being a
* backslash. */
-#define isBACKSLASHED_PUNCT(c) strchr("-]\\^", c)
+#define isBACKSLASHED_PUNCT(c) strchr("-[]\\^", c)
struct RExC_state_t {