From a54db6c11b85e16363f9f6df2a9a6e1d2d53555f Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 4 Jun 2015 10:41:33 +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/branches/1.0.x@6037 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