forked from qt-creator/qt-creator
Highlighter: Handle lineEmptyContext in generic highlighter
Task-number: QTCREATORBUG-16304 Change-Id: I8202bcb9cbebac5913d49e39011eb00f909aa4ad Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -204,6 +204,11 @@ void Highlighter::highlightBlock(const QString &text)
|
||||
m_currentContext->definition(),
|
||||
false);
|
||||
}
|
||||
if (length == 0) {
|
||||
handleContextChange(m_currentContext->lineEmptyContext(),
|
||||
m_currentContext->definition(),
|
||||
false);
|
||||
}
|
||||
delete progress;
|
||||
m_contexts.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user