ClangCodeModel: Support "parentheses" matching for ternary operator

That is, show which ":" belongs to which "?" when the cursor is on one
of them.

Fixes: QTCREATORBUG-1410
Change-Id: Ie19360b3dfc82d92c264d99a5aa1864eda66e5c8
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2021-02-10 17:49:04 +01:00
parent c058ceead4
commit 5f5f38e028
7 changed files with 31 additions and 4 deletions

View File

@@ -61,6 +61,8 @@ public:
VirtualFunctionDeclarationUse,
AngleBracketOpen,
AngleBracketClose,
TernaryIf,
TernaryElse,
};
using HighlightingRunner = std::function<QFuture<TextEditor::HighlightingResult> ()>;