diff options
author | Karl Williamson <khw@cpan.org> | 2019-03-19 12:14:26 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-03-19 12:50:49 -0600 |
commit | e750debb242ae6fdd7b786405ba167620fb77a2d (patch) | |
tree | 79f42c65a6808f1ee2105d06e65a144a61b48b67 /dquote.c | |
parent | ccad88426c3827a98f048facac304bace92604e7 (diff) | |
download | perl-e750debb242ae6fdd7b786405ba167620fb77a2d.tar.gz |
Change error wording for empty \x{}
An empty \x{} is unfortunately legal (returning a NUL) except in the
scope of "use re 'strict'". Since this is an experimental feature,
things like wording changes are allowed. It is unlikely anyone is
relying on the precise wording of this fatal error under 'strict', and
now all the messages for similar errors are similarly worded.
Diffstat (limited to 'dquote.c')
-rw-r--r-- | dquote.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -253,7 +253,7 @@ Perl_grok_bslash_x(pTHX_ char **s, const char * const send, UV *uv, if (numbers_len == 0) { if (strict) { (*s)++; /* Move past the } */ - *error_msg = "Number with no digits"; + *error_msg = "Empty \\x{}"; return FALSE; } *s = e + 1; |