forked from qt-creator/qt-creator
CppTools: Another parentheses highlighting fix
Amends c80c724b52
.
Change-Id: I2691791d40c84bbc1fa6c2525676ef3955b4ffd3
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -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};
|
||||||
|
Reference in New Issue
Block a user