forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.11'
Change-Id: Ica0d173a08ff3f0296e875aa324d5bb6974bd90f
This commit is contained in:
@@ -301,8 +301,10 @@ static bool isClosingParenthesis(QChar c)
|
||||
|
||||
void Highlighter::highlightBlock(const QString &text)
|
||||
{
|
||||
if (!definition().isValid())
|
||||
if (!definition().isValid()) {
|
||||
formatSpaces(text);
|
||||
return;
|
||||
}
|
||||
QTextBlock block = currentBlock();
|
||||
KSyntaxHighlighting::State state;
|
||||
TextDocumentLayout::setBraceDepth(block, TextDocumentLayout::braceDepth(block.previous()));
|
||||
|
||||
Reference in New Issue
Block a user