diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-02-10 17:49:04 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-02-11 08:52:17 +0000 |
commit | 5f5f38e0286e3594fff6ac33acd49a0f2222ed46 (patch) | |
tree | f6d3a415f0868b85673937329f1dd15ce0ba056c /src/libs/clangsupport | |
parent | c058ceead462dcf16ca38bb4b8fcb5a40cbd3830 (diff) |
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>
Diffstat (limited to 'src/libs/clangsupport')
-rw-r--r-- | src/libs/clangsupport/clangsupport_global.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/clangsupport/clangsupport_global.h b/src/libs/clangsupport/clangsupport_global.h index 7cc160b932..4420115165 100644 --- a/src/libs/clangsupport/clangsupport_global.h +++ b/src/libs/clangsupport/clangsupport_global.h @@ -110,6 +110,8 @@ enum class HighlightingType : quint8 TemplateTemplateParameter, AngleBracketOpen, AngleBracketClose, + TernaryIf, + TernaryElse, }; enum class StorageClass : quint8 |