summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/generichighlighter/highlighter.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-06-14 14:33:28 +0200
committerLeandro Melo <leandro.melo@nokia.com>2010-06-14 14:48:36 +0200
commitb57a1611012eb934af2d1f15528873908547fb1f (patch)
tree6b09e377fd1772c438190adec88f55379a477663 /src/plugins/texteditor/generichighlighter/highlighter.cpp
parent24be4b878fcee1323511c53991c6321895eb7d8f (diff)
downloadqt-creator-b57a1611012eb934af2d1f15528873908547fb1f.tar.gz
Generic highlighter: Small re-writings.
Diffstat (limited to 'src/plugins/texteditor/generichighlighter/highlighter.cpp')
-rw-r--r--src/plugins/texteditor/generichighlighter/highlighter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/texteditor/generichighlighter/highlighter.cpp b/src/plugins/texteditor/generichighlighter/highlighter.cpp
index 58936ac695..8b4df9a0a5 100644
--- a/src/plugins/texteditor/generichighlighter/highlighter.cpp
+++ b/src/plugins/texteditor/generichighlighter/highlighter.cpp
@@ -205,7 +205,6 @@ void Highlighter::iterateThroughRules(const QString &text,
if (progress->willContinueLine()) {
createWillContinueBlock();
progress->setWillContinueLine(false);
- progress->setOffset(length);
} else {
if (rule->hasChild())
iterateThroughRules(text, length, progress, true, rule->childs());
@@ -270,7 +269,7 @@ void Highlighter::changeContext(const QString &contextName,
m_contexts.pop_back();
if (currentBlockState() >= PersistentsStart) {
- // One or more persistent contexts were popped.
+ // One or more contexts were popped during during a persistent state.
const QString &currentSequence = currentContextSequence();
if (m_persistentStates.contains(currentSequence))
setCurrentBlockState(m_persistentStates.value(currentSequence));