summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-01-06 22:28:33 -0700
committerKarl Williamson <public@khwilliamson.com>2013-01-11 11:50:35 -0700
commit80f4111be994e38b20d72125cb8851f563eeeba9 (patch)
tree9ae26bf467c65bbf7843b05ac6d2f0c9d8e42997 /toke.c
parentb8de99caf269c77d01411e0f81d45f696af02dd2 (diff)
downloadperl-80f4111be994e38b20d72125cb8851f563eeeba9.tar.gz
Add optional strict mode to grok_bslash_[xo]
This mode croaks on any iffy constructs that currently compile. It is not currently used; documentation of the error messages will be delivered later.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 6cf5afc526..dbadf608f9 100644
--- a/toke.c
+++ b/toke.c
@@ -3290,7 +3290,9 @@ S_scan_const(pTHX_ char *start)
const char* error;
bool valid = grok_bslash_o(&s, &uv, &error,
- TRUE); /* Output warning */
+ TRUE, /* Output warning */
+ FALSE, /* Not strict */
+ UTF);
if (! valid) {
yyerror(error);
continue;
@@ -3304,7 +3306,9 @@ S_scan_const(pTHX_ char *start)
const char* error;
bool valid = grok_bslash_x(&s, &uv, &error,
- TRUE); /* Output warning */
+ TRUE, /* Output warning */
+ FALSE, /* Not strict */
+ UTF);
if (! valid) {
yyerror(error);
continue;