picked a henning diff from src - original log:

fix linecount bug with comments spanning multiple lines
problem reported with the obvious fix for bgpd by Sebastian Benoit
<benoit-lists at fb12.de>, also PR 6432

ok oga@
This commit is contained in:
okan 2010-09-25 20:02:58 +00:00
parent 917bce4b8d
commit 2d66003e4b

View File

@ -366,9 +366,10 @@ yylex(void)
return (0);
if (next == quotec || c == ' ' || c == '\t')
c = next;
else if (next == '\n')
else if (next == '\n') {
file->lineno++;
continue;
else
} else
lungetc(next);
} else if (c == quotec) {
*p = '\0';