forked from qt-creator/qt-creator
Editor: always set format for visual whitespace
Change-Id: I2ab4cb9f77d649c1c7d51dec1ef11005325a4710 Fixes: QTCREATORBUG-23040 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -302,8 +302,10 @@ static bool isClosingParenthesis(QChar c)
|
|||||||
|
|
||||||
void Highlighter::highlightBlock(const QString &text)
|
void Highlighter::highlightBlock(const QString &text)
|
||||||
{
|
{
|
||||||
if (!definition().isValid())
|
if (!definition().isValid()) {
|
||||||
|
formatSpaces(text);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
QTextBlock block = currentBlock();
|
QTextBlock block = currentBlock();
|
||||||
KSyntaxHighlighting::State state;
|
KSyntaxHighlighting::State state;
|
||||||
TextDocumentLayout::setBraceDepth(block, TextDocumentLayout::braceDepth(block.previous()));
|
TextDocumentLayout::setBraceDepth(block, TextDocumentLayout::braceDepth(block.previous()));
|
||||||
|
Reference in New Issue
Block a user