diff options
Diffstat (limited to 'dquote_static.c')
-rw-r--r-- | dquote_static.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dquote_static.c b/dquote_static.c index fa8e354246..d928e6757c 100644 --- a/dquote_static.c +++ b/dquote_static.c @@ -130,6 +130,9 @@ S_grok_bslash_o(pTHX_ char **s, UV *uv, const char** error_msg, e = strchr(*s, '}'); if (!e) { (*s)++; /* Move past the '{' */ + while (isOCTAL(**s)) { /* Position beyond the legal digits */ + (*s)++; + } *error_msg = "Missing right brace on \\o{"; return FALSE; } @@ -209,6 +212,9 @@ S_grok_bslash_x(pTHX_ char **s, UV *uv, const char** error_msg, e = strchr(*s, '}'); if (!e) { (*s)++; /* Move past the '{' */ + while (isXDIGIT(**s)) { /* Position beyond the legal digits */ + (*s)++; + } /* XXX The corresponding message above for \o is just '\\o{'; other * messages for other constructs include the '}', so are inconsistent. */ |