Skip to content
Snippets Groups Projects
Commit 280a99b6 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Invoke onBlockEnd() after the block highlighter is done.

parent fa925ccd
No related branches found
No related tags found
No related merge requests found
...@@ -161,9 +161,8 @@ void QScriptHighlighter::highlightBlock(const QString &text) ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment