diff --git a/gui/codeeditor.cpp b/gui/codeeditor.cpp index e2b85e36b..567a12a43 100644 --- a/gui/codeeditor.cpp +++ b/gui/codeeditor.cpp @@ -15,45 +15,83 @@ Highlighter::Highlighter(QTextDocument *parent, mKeywordFormat.setForeground(mWidgetStyle->keywordColor); mKeywordFormat.setFontWeight(mWidgetStyle->keywordWeight); QStringList keywordPatterns; - keywordPatterns << "bool" + keywordPatterns << "alignas" + << "alignof" + << "asm" + << "auto" + << "bool" << "break" << "case" + << "catch" << "char" + << "char8_­t" + << "char16_­t" + << "char32_­t" << "class" + << "concept" << "const" + << "consteval" + << "constexpr" + << "constinit" + << "const_­cast" << "continue" + << "co_­await" + << "co_­return" + << "co_­yield" + << "decltype" << "default" + << "delete" << "do" << "double" + << "dynamic_­cast" << "else" << "enum" << "explicit" + << "export" + << "extern" + << "false" + << "float" << "for" << "friend" + << "goto" << "if" << "inline" << "int" << "long" + << "mutable" << "namespace" + << "new" + << "noexcept" + << "nullptr" << "operator" << "private" << "protected" << "public" + << "reinterpret_­cast" + << "requires" << "return" << "short" << "signed" << "static" + << "static_­assert" + << "static_­cast" << "struct" << "switch" << "template" + << "this" + << "thread_­local" << "throw" + << "true" + << "try" << "typedef" + << "typeid" << "typename" << "union" << "unsigned" << "virtual" << "void" << "volatile" + << "wchar_­t" << "while"; foreach (const QString &pattern, keywordPatterns) { rule.pattern = QRegularExpression("\\b" + pattern + "\\b"); diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index fe997a775..91fa01af3 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -228,7 +228,7 @@ bool ResultsTree::addErrorItem(const ErrorItem &item) stditem->setData(QVariant(data)); //Add backtrace files as children - if (item.errorPath.size() > 1U) { + if (item.errorPath.size() > 1) { for (int i = 0; i < item.errorPath.size(); i++) { const QErrorPathItem &e = item.errorPath[i]; line.file = e.file;