projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9a26a8
)
Confusing error from perl -e "x'"
author
Hans Mulder
<hansmu@xs4all.nl>
Wed, 25 Mar 1998 17:43:17 +0000
(12:43 -0500)
committer
Malcolm Beattie
<mbeattie@sable.ox.ac.uk>
Thu, 2 Apr 1998 15:55:46 +0000
(15:55 +0000)
p4raw-id: //depot/perl@853
toke.c
patch
|
blob
|
history
diff --git
a/toke.c
b/toke.c
index
39382c9
..
5605938
100644
(file)
--- 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;
}