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:
David Schulz
2016-09-02 12:33:05 +02:00
parent b554829fd8
commit f1ee907bf4
4 changed files with 20 additions and 1 deletions

View File

@@ -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();