From: michael Date: Thu, 4 Jun 2015 10:41:19 +0000 (+0000) Subject: - config-lexer.l: fixed bug where the configuration parser would report syntax errors... X-Git-Tag: 1.1.0beta1~65 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=d0539ec8aaabe7ef7c459f8d016017ace60b567b;p=hopm.git - 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 --- 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) {