From d0539ec8aaabe7ef7c459f8d016017ace60b567b Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 4 Jun 2015 10:41:19 +0000 Subject: [PATCH] - config-lexer.l: fixed bug where the configuration parser would report syntax errors with invalid line numbers when there are multi-line C comments in the config file. git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6036 82007160-df01-0410-b94d-b575c5fd34c7 --- src/config-lexer.l | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config-lexer.l b/src/config-lexer.l index c5ae27f..b333e60 100644 --- a/src/config-lexer.l +++ b/src/config-lexer.l @@ -266,6 +266,8 @@ void ccomment(void) { while ((c = input()) == '*'); if (c == '/') break; + else if (c == '\n') + ++linenum; } if (c == EOF) { -- 2.30.2