forked from qt-creator/qt-creator
ClangCodeModel: Consider concepts in semantic highlighting
We highlight concepts as types for now, as it's a pretty good fit. We can always introduce a dedicated concept highlighting type later if there is demand. Task-number: QTCREATORBUG-28887 Change-Id: I405db5ca4351efd565b968e765fe8bca976a2800 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -328,7 +328,7 @@ void doSemanticHighlighting(
|
||||
styles.mainStyle = C_PARAMETER;
|
||||
} else if (token.type == "macro") {
|
||||
styles.mainStyle = C_MACRO;
|
||||
} else if (token.type == "type") {
|
||||
} else if (token.type == "type" || token.type == "concept") {
|
||||
styles.mainStyle = C_TYPE;
|
||||
} else if (token.type == "modifier") {
|
||||
styles.mainStyle = C_KEYWORD;
|
||||
|
||||
Reference in New Issue
Block a user