CppEditor: Do not highlight macros as preprocessor statements

Macros are used like identifiers; there is no reason why they should need
to have the same highlighting as a preprocessor directive.

Fixes: QTCREATORBUG-23548
Change-Id: I186befc06ccb36a00451fd707c41e3687a84af14
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2022-06-17 11:06:10 +02:00
parent 83c380665d
commit 9cbe2439dd
17 changed files with 35 additions and 18 deletions

View File

@@ -262,7 +262,7 @@ void SemanticTokenSupport::updateFormatHash()
case variableToken: style = C_LOCAL; break;
case functionToken: style = C_FUNCTION; break;
case methodToken: style = C_FUNCTION; break;
case macroToken: style = C_PREPROCESSOR; break;
case macroToken: style = C_MACRO; break;
case keywordToken: style = C_KEYWORD; break;
case commentToken: style = C_COMMENT; break;
case stringToken: style = C_STRING; break;