summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-02-01 04:31:09 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-02-01 04:31:09 +0000
commitd194fe61f689c3f3b6f024f88d67f0262ed84a53 (patch)
tree51ebc6bfb3b862b6e4510c78f8082db18e3904d7 /toke.c
parent362d283a52a64f34b327787af60074b1bc15a3a6 (diff)
downloadperl-d194fe61f689c3f3b6f024f88d67f0262ed84a53.tar.gz
improved diagnostic on syntax errors at EOL
p4raw-id: //depot/perl@2744
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index de6bfda949..66d9947e64 100644
--- 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;