0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

Fixed: no highlighting of keyword <let>

Fixed: no highlighting of strings quoted with apostrophe <`>
Fixed: incorrect highlighting of multi-line comments /* ... */
Fixed: incorrect parentheses if there is an empty string between parentheses chars
This commit is contained in:
Константин Макаренков
2021-06-16 15:05:13 +03:00
parent 409e8b1819
commit 0353dbb7b4
2 changed files with 90 additions and 32 deletions

View File

@@ -197,12 +197,12 @@ bool CodeEditor::matchLeftParenthesis(QTextBlock currentBlock, QChar parenthesis
}
}
currentBlock = currentBlock.next();
if (currentBlock.isValid())
return matchLeftParenthesis(currentBlock, parenthesisType, 0, numLeftParentheses);
}
currentBlock = currentBlock.next();
if (currentBlock.isValid())
return matchLeftParenthesis(currentBlock, parenthesisType, 0, numLeftParentheses);
return false;
}
@@ -227,12 +227,12 @@ bool CodeEditor::matchRightParenthesis(QTextBlock currentBlock, QChar parenthesi
--numRightParentheses;
}
}
currentBlock = currentBlock.previous();
if (currentBlock.isValid())
return matchRightParenthesis(currentBlock, parenthesisType, -2, numRightParentheses);
}
currentBlock = currentBlock.previous();
if (currentBlock.isValid())
return matchRightParenthesis(currentBlock, parenthesisType, -2, numRightParentheses);
return false;
}