From 5e3da690e2a757ebff3d71ed85ab65a0cc75efff Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 5 Aug 2024 14:58:21 +0200 Subject: [PATCH] CppEditor: Add syntax highlighting for C++ attributes Fixes: QTCREATORBUG-31241 Change-Id: I7583c3cd08c2ec58ca7702e7758aad6c0e142574 Reviewed-by: David Schulz --- share/qtcreator/styles/creator-dark.xml | 1 + share/qtcreator/styles/dark.xml | 1 + share/qtcreator/styles/default_classic.xml | 1 + share/qtcreator/styles/grayscale.xml | 1 + share/qtcreator/styles/inkpot.xml | 1 + share/qtcreator/styles/intellij.xml | 1 + .../styles/modnokai_night_shift_v2.xml | 1 + share/qtcreator/styles/solarized-dark.xml | 1 + share/qtcreator/styles/solarized-light.xml | 1 + src/plugins/cppeditor/cpphighlighter.cpp | 72 +++++++++++++++++++ .../testcases/highlightingtestcase.cpp | 7 ++ src/plugins/texteditor/textdocumentlayout.cpp | 15 ++++ src/plugins/texteditor/textdocumentlayout.h | 6 ++ .../texteditor/texteditorconstants.cpp | 1 + src/plugins/texteditor/texteditorconstants.h | 1 + src/plugins/texteditor/texteditorsettings.cpp | 2 + 16 files changed, 113 insertions(+) diff --git a/share/qtcreator/styles/creator-dark.xml b/share/qtcreator/styles/creator-dark.xml index 85add5cfac2..088feb7a2ed 100644 --- a/share/qtcreator/styles/creator-dark.xml +++ b/share/qtcreator/styles/creator-dark.xml @@ -29,6 +29,7 @@