Context-sensitive highlighting.

This commit is contained in:
Roberto Raggi
2009-03-03 13:46:37 +01:00
parent fb44054c32
commit 3d6f7de909
7 changed files with 166 additions and 34 deletions

View File

@@ -54,6 +54,7 @@
#include <QtDebug>
#include <algorithm>
#include <cctype>
namespace CPlusPlus {
@@ -694,7 +695,6 @@ void Preprocessor::preprocess(const QByteArray &fileName, const QByteArray &sour
else if (_dot->whitespace) {
TokenIterator begin = _tokens.constBegin();
Q_ASSERT(begin != first);
const unsigned endOfPreviousToken = (_dot - 1)->end();
const unsigned beginOfToken = _dot->begin();