summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-02-18 14:51:01 -0700
committerKarl Williamson <khw@cpan.org>2016-02-19 11:27:10 -0700
commit45b9a532ff9dd7ec76d390b6ceee099e4d9a46fb (patch)
tree752749ecd6fb6e39b9b0516092f8e95509bb5582 /regcomp.c
parent32fa2c204fb455610457982048a82eba4ca7385b (diff)
downloadperl-45b9a532ff9dd7ec76d390b6ceee099e4d9a46fb.tar.gz
regcomp.c: Use colors for -Dr metanotation
Use a different color for the metanotation than the code points being output under Debugcolor. The default is to have stand out mode for the code points, and not for the meta.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/regcomp.c b/regcomp.c
index 5744fa1baa..cec854a664 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -19586,18 +19586,17 @@ S_put_charclass_bitmap_innards_common(pTHX_
}
if (only_utf8 && _invlist_len(only_utf8)) {
- sv_catpvs(output, "{utf8}");
+ Perl_sv_catpvf(aTHX_ output, "%s{utf8}%s", PL_colors[1], PL_colors[0]);
put_charclass_bitmap_innards_invlist(output, only_utf8);
}
if (not_utf8 && _invlist_len(not_utf8)) {
- sv_catpvs(output, "{not utf8}");
+ Perl_sv_catpvf(aTHX_ output, "%s{not utf8}%s", PL_colors[1], PL_colors[0]);
put_charclass_bitmap_innards_invlist(output, not_utf8);
}
if (only_utf8_locale && _invlist_len(only_utf8_locale)) {
- sv_catpvs(output, "{utf8 locale}");
-
+ Perl_sv_catpvf(aTHX_ output, "%s{utf8 locale}%s", PL_colors[1], PL_colors[0]);
put_charclass_bitmap_innards_invlist(output, only_utf8_locale);
/* This is the only list in this routine that can legally contain code