summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Mulder <hansmu@xs4all.nl>1998-03-25 12:43:17 -0500
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-04-02 15:55:46 +0000
commitec2ab091f034a27dfbd7d815fad4e3e670b743e9 (patch)
treefe401b7bdd178c8ca6cffca31ea92838e636a308
parentf9a26a8bc278e3c63fbdba45d0b02bb258cdbc4d (diff)
downloadperl-ec2ab091f034a27dfbd7d815fad4e3e670b743e9.tar.gz
Confusing error from perl -e "x'"
p4raw-id: //depot/perl@853
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 39382c9cf1..5605938274 100644
--- a/toke.c
+++ b/toke.c
@@ -2848,7 +2848,8 @@ yylex(void)
s = scan_word(s, tokenbuf + len, sizeof tokenbuf - len,
TRUE, &morelen);
if (!morelen)
- croak("Bad name after %s::", tokenbuf);
+ croak("Bad name after %s%s", tokenbuf,
+ *s == '\'' ? "'" : "::");
len += morelen;
}