- config-lexer.l: fixed bug where the configuration parser would report syntax errors...
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 4 Jun 2015 10:41:33 +0000 (10:41 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 4 Jun 2015 10:41:33 +0000 (10:41 +0000)
  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

index c5ae27f31b265577a3467f3fd7ebfee27aedb782..b333e6019ca41ed3fd248c3975286ad9ff1e6e15 100644 (file)
@@ -266,6 +266,8 @@ void ccomment(void)
      {
         while ((c = input()) == '*');
         if (c == '/') break;
+        else if (c == '\n')
+          ++linenum;
      }
     if (c == EOF)
     {