From kde-commits Wed Nov 30 22:29:26 2005 From: Anne-Marie Mahfouf Date: Wed, 30 Nov 2005 22:29:26 +0000 To: kde-commits Subject: branches/kdevelop/3.4/lib/cppparser Message-Id: <1133389766.520297.24149.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=113338977616523 SVN commit 484471 by annma: fix 88181 can someone backport this fix to kdevelop in kde 3.5 branch please? CCBUG=88181 M +4 -4 lexer.h --- branches/kdevelop/3.4/lib/cppparser/lexer.h #484470:484471 @@ -543,8 +543,8 @@ inline void Lexer::readLineComment() { while( !currentChar().isNull() && currentChar() != '\n' ){ - if( m_reportMessages && currentChar() == '@' && m_source.mid(currentPosition()+1, 4).lower() == "todo" ){ - nextChar( 5 ); + if( m_reportMessages && m_source.mid(currentPosition(), 4).lower() == "todo" ){ + nextChar( 4 ); QString msg; int line = m_currentLine; int col = m_currentColumn; @@ -587,8 +587,8 @@ if( currentChar() == '*' && peekChar() == '/' ){ nextChar( 2 ); return; - } else if( m_reportMessages && currentChar() == '@' && m_source.mid(currentPosition()+1, 4).lower() == "todo" ){ - nextChar( 5 ); + } else if( m_reportMessages && m_source.mid(currentPosition(), 4).lower() == "todo" ){ + nextChar( 4 ); QString msg; int line = m_currentLine; int col = m_currentColumn;