summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-10-17 13:17:19 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1998-10-17 13:17:19 +0000
commitb56ec34489067f612a4e5d2fecae86c5bbfffd5c (patch)
tree4cd76f13513d1a6d80609521251f6d9197a31389 /toke.c
parent94be4d36b6a9723699dc23390a82363603e14049 (diff)
downloadperl-b56ec34489067f612a4e5d2fecae86c5bbfffd5c.tar.gz
Integrate mainperl.
p4raw-id: //depot/cfgperl@2005
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 88933de079..8664b8f5e2 100644
--- a/toke.c
+++ b/toke.c
@@ -1076,8 +1076,10 @@ scan_const(char *start)
if (*s == '{') {
char* e = strchr(s, '}');
- if (!e)
+ if (!e) {
yyerror("Missing right brace on \\x{}");
+ e = s;
+ }
if (!utf) {
dTHR;
if (ckWARN(WARN_UTF8))