diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-01-06 22:28:33 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-01-11 11:50:35 -0700 |
commit | 80f4111be994e38b20d72125cb8851f563eeeba9 (patch) | |
tree | 9ae26bf467c65bbf7843b05ac6d2f0c9d8e42997 /toke.c | |
parent | b8de99caf269c77d01411e0f81d45f696af02dd2 (diff) | |
download | perl-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |