CppTools: Another parentheses highlighting fix

Amends c80c724b52.

Change-Id: I2691791d40c84bbc1fa6c2525676ef3955b4ffd3
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2021-04-19 16:15:37 +02:00
parent 2cd93bad31
commit b1758b1eb2

View File

@@ -199,7 +199,9 @@ void SemanticHighlighter::onHighlighterResultAvailable(int from, int to)
} else if (result.kind == AngleBracketClose) { } else if (result.kind == AngleBracketClose) {
paren = {Parenthesis::Closed, '>', result.column - 1}; paren = {Parenthesis::Closed, '>', result.column - 1};
} else if (result.kind == DoubleAngleBracketClose) { } else if (result.kind == DoubleAngleBracketClose) {
parentheses.second.append({Parenthesis::Closed, '>', result.column - 1}); Parenthesis extraParen = {Parenthesis::Closed, '>', result.column - 1};
extraParen.source = parenSource();
parentheses.second.append(extraParen);
paren = {Parenthesis::Closed, '>', result.column}; paren = {Parenthesis::Closed, '>', result.column};
} else if (result.kind == TernaryIf) { } else if (result.kind == TernaryIf) {
paren = {Parenthesis::Opened, '?', result.column - 1}; paren = {Parenthesis::Opened, '?', result.column - 1};