summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-10-27 10:08:35 -0600
committerKarl Williamson <khw@cpan.org>2017-10-27 10:22:11 -0600
commite1342f665c7dae0281567a274d641094486f2a48 (patch)
tree85b7e78ce79b55b8383f5b56b8441029ed08d8ac /toke.c
parentf7525edc9418155e0387fee96cf61d4752a10757 (diff)
downloadperl-e1342f665c7dae0281567a274d641094486f2a48.tar.gz
toke.c: Add commentary
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/toke.c b/toke.c
index 08a1074703..e7208babec 100644
--- a/toke.c
+++ b/toke.c
@@ -3627,11 +3627,12 @@ S_scan_const(pTHX_ char *start)
* For non-patterns, the named characters are converted to
* their string equivalents. In patterns, named characters are
* not converted to their ultimate forms for the same reasons
- * that other escapes aren't. Instead, they are converted to
- * the \N{U+...} form to get the value from the charnames that
- * is in effect right now, while preserving the fact that it
- * was a named character, so that the regex compiler knows
- * this.
+ * that other escapes aren't (mainly that the ultimate
+ * character could be considered a meta-symbol by the regex
+ * compiler). Instead, they are converted to the \N{U+...}
+ * form to get the value from the charnames that is in effect
+ * right now, while preserving the fact that it was a named
+ * character, so that the regex compiler knows this.
*
* The structure of this section of code (besides checking for
* errors and upgrading to utf8) is: