forked from qt-creator/qt-creator
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 <david.schulz@qt.io>
This commit is contained in:
@@ -417,6 +417,10 @@ bool FontSettings::loadColorScheme(const QString &fileName,
|
||||
foreach (const FormatDescription &desc, descriptions) {
|
||||
const TextStyle id = desc.id();
|
||||
if (!m_scheme.contains(id)) {
|
||||
if (id == C_NAMESPACE && m_scheme.contains(C_TYPE)) {
|
||||
m_scheme.setFormatFor(C_NAMESPACE, m_scheme.formatFor(C_TYPE));
|
||||
continue;
|
||||
}
|
||||
Format format;
|
||||
const Format &descFormat = desc.format();
|
||||
// Default fallback for background and foreground is C_TEXT, which is set through
|
||||
|
||||
Reference in New Issue
Block a user