forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.3'
Conflicts: src/plugins/debugger/watchhandler.cpp src/plugins/projectexplorer/kitmodel.cpp src/plugins/qbsprojectmanager/qbsprojectmanager.cpp src/shared/qbs Change-Id: I6a68090993a264e93ac7850858cc24ba6bdb5602
This commit is contained in:
@@ -175,16 +175,17 @@ void Highlighter::highlightBlock(const QString &text)
|
||||
handleContextChange(m_currentContext->lineBeginContext(),
|
||||
m_currentContext->definition());
|
||||
|
||||
ProgressData progress;
|
||||
ProgressData *progress = new ProgressData;
|
||||
const int length = text.length();
|
||||
while (progress.offset() < length)
|
||||
iterateThroughRules(text, length, &progress, false, m_currentContext->rules());
|
||||
while (progress->offset() < length)
|
||||
iterateThroughRules(text, length, progress, false, m_currentContext->rules());
|
||||
|
||||
if (extractObservableState(currentBlockState()) != WillContinue) {
|
||||
handleContextChange(m_currentContext->lineEndContext(),
|
||||
m_currentContext->definition(),
|
||||
false);
|
||||
}
|
||||
delete progress;
|
||||
m_contexts.clear();
|
||||
|
||||
if (m_indentationBasedFolding) {
|
||||
|
||||
Reference in New Issue
Block a user