From 2d66003e4b8013d02370982fdf617510b108144c Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 25 Sep 2010 20:02:58 +0000 Subject: [PATCH] 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 , also PR 6432 ok oga@ --- parse.y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parse.y b/parse.y index 20b1d8b..d86c4e1 100644 --- a/parse.y +++ b/parse.y @@ -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';