mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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:
parent
917bce4b8d
commit
2d66003e4b
5
parse.y
5
parse.y
@ -366,9 +366,10 @@ yylex(void)
|
|||||||
return (0);
|
return (0);
|
||||||
if (next == quotec || c == ' ' || c == '\t')
|
if (next == quotec || c == ' ' || c == '\t')
|
||||||
c = next;
|
c = next;
|
||||||
else if (next == '\n')
|
else if (next == '\n') {
|
||||||
|
file->lineno++;
|
||||||
continue;
|
continue;
|
||||||
else
|
} else
|
||||||
lungetc(next);
|
lungetc(next);
|
||||||
} else if (c == quotec) {
|
} else if (c == quotec) {
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user