Index: src/code.l
===================================================================
RCS file: /cygdrive/d/cvs_doxygen/doxygen/doxygen/src/code.l,v
retrieving revision 1.8
diff -u -r1.8 code.l
--- src/code.l	20 Jan 2013 13:57:47 -0000	1.8
+++ src/code.l	28 Jan 2013 19:29:40 -0000
@@ -3341,10 +3341,10 @@
 					    BEGIN(SkipComment);
  					  }
   					}
-<*>^{B}*"//"[!/][^\n]*\n		{ // remove special one-line comment
+<*>^({B}*"//"[!/][^\n]*\n)+		{ // remove special one-line comment
   					  if (Config_getBool("STRIP_CODE_COMMENTS"))
 					  {
-					    g_yyLineNr++;
+					    g_yyLineNr+=((QCString)yytext).contains('\n');
 					    nextCodeLine();
 					  }
 					  else
