From c3a11939697f9b9fc92375d5f100d8f8d75a7bd8 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 27 Oct 2021 15:52:20 +0200 Subject: [PATCH] TextEditor: Add highlighting category for namespaces ... and make use of it in the built-in code model and with clangd. Task-number: QTCREATORBUG-16580 Change-Id: I8c331f56aa1bbf91c9f768be82a779a72f40c4c7 Reviewed-by: David Schulz --- share/qtcreator/styles/grayscale.xml | 1 + src/plugins/clangcodemodel/clangdclient.cpp | 2 +- .../clangcodemodel/test/clangdtests.cpp | 13 ++--- src/plugins/cppeditor/cppchecksymbols.cpp | 14 ++++- src/plugins/cppeditor/semantichighlighter.cpp | 1 + src/plugins/cppeditor/semantichighlighter.h | 1 + src/plugins/texteditor/fontsettings.cpp | 4 ++ .../texteditor/texteditorconstants.cpp | 1 + src/plugins/texteditor/texteditorconstants.h | 1 + src/plugins/texteditor/texteditorsettings.cpp | 2 + .../checksymbols/tst_checksymbols.cpp | 51 ++++++++++--------- 11 files changed, 57 insertions(+), 34 deletions(-) diff --git a/share/qtcreator/styles/grayscale.xml b/share/qtcreator/styles/grayscale.xml index 39dabbff691..09a09f1ba93 100644 --- a/share/qtcreator/styles/grayscale.xml +++ b/share/qtcreator/styles/grayscale.xml @@ -35,6 +35,7 @@