From: Gurusamy Sarathy Date: Mon, 1 Feb 1999 04:31:09 +0000 (+0000) Subject: improved diagnostic on syntax errors at EOL X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d194fe61f689c3f3b6f024f88d67f0262ed84a53;p=p5sagit%2Fp5-mst-13.2.git improved diagnostic on syntax errors at EOL p4raw-id: //depot/perl@2744 --- diff --git a/toke.c b/toke.c index de6bfda..66d9947 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;