This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
362d283
)
improved diagnostic on syntax errors at EOL
author
Gurusamy Sarathy
<gsar@cpan.org>
Mon, 1 Feb 1999 04:31:09 +0000
(
04:31
+0000)
committer
Gurusamy Sarathy
<gsar@cpan.org>
Mon, 1 Feb 1999 04:31:09 +0000
(
04:31
+0000)
p4raw-id: //depot/perl@2744
toke.c
patch
|
blob
|
blame
|
history
diff --git
a/toke.c
b/toke.c
index
de6bfda
..
66d9947
100644
(file)
--- a/
toke.c
+++ b/
toke.c
@@
-199,6
+199,8
@@
no_op(char *what, char *s)
t - PL_oldoldbufptr, PL_oldoldbufptr);
}
+ else if (s <= oldbp)
+ warn("\t(Missing operator before end of line?)\n");
else
warn("\t(Missing operator before %.*s?)\n", s - oldbp, oldbp);
PL_bufptr = oldbp;