change: Caret on word in string/comment don't highlight it.

This commit is contained in:
Roy Qu 2024-03-29 21:04:40 +08:00
parent acd9030374
commit 63235f823d
1 changed files with 1 additions and 3 deletions

View File

@ -1884,9 +1884,7 @@ void Editor::onStatusChanged(QSynedit::StatusChanges changes)
&& (
(attri->tokenType()==QSynedit::TokenType::Identifier)
|| (attri->tokenType() == QSynedit::TokenType::Keyword)
|| (attri->tokenType() == QSynedit::TokenType::Preprocessor)
|| (attri->tokenType() == QSynedit::TokenType::String)
|| (attri->tokenType() == QSynedit::TokenType::Comment))
|| (attri->tokenType() == QSynedit::TokenType::Preprocessor))
&& !token.isEmpty()
&& isIdentStartChar(token[0])) {
mCurrentHighlightedWord = token;