forked from qt-creator/qt-creator
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:
@@ -263,6 +263,8 @@ FormatDescriptions TextEditorSettingsPrivate::initialFormats()
|
||||
FormatDescription::ShowAllControls);
|
||||
formatDescr.emplace_back(C_PREPROCESSOR, tr("Preprocessor"),
|
||||
tr("Preprocessor directives."), Qt::darkBlue);
|
||||
formatDescr.emplace_back(C_MACRO, tr("Macro"),
|
||||
tr("Macros."), functionFormat);
|
||||
formatDescr.emplace_back(C_LABEL, tr("Label"), tr("Labels for goto statements."),
|
||||
Qt::darkRed);
|
||||
formatDescr.emplace_back(C_COMMENT, tr("Comment"),
|
||||
|
||||
Reference in New Issue
Block a user