diff options
author | Christian Kandeler <[email protected]> | 2025-09-10 13:33:51 +0200 |
---|---|---|
committer | Christian Kandeler <[email protected]> | 2025-09-10 12:50:08 +0000 |
commit | 0ae94cb5a6a2fc538d4b7e6081b3542941f41d88 (patch) | |
tree | 843226b777b628d8cb8d4cb2d9e6d8cbd06cf1da | |
parent | 146ba96ca21de397e6f66c1ae5f8d28098239098 (diff) |
CppEditor: Remove redundant conditions in syntax highlighter
Change-Id: Ibb923af63d95e0ae51ea03228132537e780be394
Reviewed-by: David Schulz <[email protected]>
-rw-r--r-- | src/plugins/cppeditor/cpphighlighter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cpphighlighter.cpp b/src/plugins/cppeditor/cpphighlighter.cpp index e0c6c44542b..d57f08f8d4b 100644 --- a/src/plugins/cppeditor/cpphighlighter.cpp +++ b/src/plugins/cppeditor/cpphighlighter.cpp @@ -195,13 +195,13 @@ void CppHighlighter::highlightBlock(const QString &text) continue; // Handle attributes, i.e. identifiers in pairs of "[[" and "]]". - if (tk.is(T_LBRACKET) && !tk.isOperator()) { + if (tk.is(T_LBRACKET)) { attrState.lbrackets = !attrState.lbrackets; if (attrState.lbrackets == 0) ++attrState.opened; continue; } - if (tk.is(T_RBRACKET) && !tk.isOperator()) { + if (tk.is(T_RBRACKET)) { attrState.rbrackets = !attrState.rbrackets; if (attrState.rbrackets == 0 && attrState.opened > 0) --attrState.opened; |