forked from qt-creator/qt-creator
Invoke onBlockEnd() after the block highlighter is done.
This commit is contained in:
@@ -161,9 +161,8 @@ void QScriptHighlighter::highlightBlock(const QString &text)
|
|||||||
else if (text.length() > lastEnd)
|
else if (text.length() > lastEnd)
|
||||||
setFormat(lastEnd, text.length() - lastEnd, m_formats[VisualWhitespace]);
|
setFormat(lastEnd, text.length() - lastEnd, m_formats[VisualWhitespace]);
|
||||||
|
|
||||||
onBlockEnd(m_scanner.endState(), firstNonSpace);
|
|
||||||
|
|
||||||
setCurrentBlockState(m_scanner.endState());
|
setCurrentBlockState(m_scanner.endState());
|
||||||
|
onBlockEnd(m_scanner.endState(), firstNonSpace);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QScriptHighlighter::setFormats(const QVector<QTextCharFormat> &s)
|
void QScriptHighlighter::setFormats(const QVector<QTextCharFormat> &s)
|
||||||
|
|||||||
Reference in New Issue
Block a user