change: Caret on word in string/comment don't highlight it.
This commit is contained in:
parent
acd9030374
commit
63235f823d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue