forked from qt-creator/qt-creator
Highlighting: Add highlighting style for punctuation
Currently only operators have their own style but not punctuation tokens. Make possible to highlight both. Task-number: QTCREATORBUG-20666 Change-Id: I9533e0f1bef65b86c4e4f5c9756571103584124b Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -243,7 +243,7 @@ void FullTokenInfo::overloadedOperatorKind()
|
||||
{
|
||||
TokenInfo::overloadedOperatorKind();
|
||||
|
||||
if (m_types.mixinHighlightingTypes.front() != HighlightingType::OverloadedOperator)
|
||||
if (!m_types.mixinHighlightingTypes.contains(HighlightingType::OverloadedOperator))
|
||||
return;
|
||||
|
||||
// Overloaded operator
|
||||
|
||||
Reference in New Issue
Block a user