highlights "import"/"module"/"override"/"final"

This commit is contained in:
Roy Qu 2024-03-24 17:15:40 +08:00
parent 741b814e1d
commit 4c8e88ce1b
3 changed files with 4 additions and 2 deletions

View File

@ -3560,7 +3560,6 @@ bool CppParser::handleStatement(int maxIndex)
//Q_ASSERT(mIndex<999999);
return mIndex < maxIndex;
}
void CppParser::handleStructs(bool isTypedef, int maxIndex)

View File

@ -150,7 +150,6 @@ void initParser()
CppKeywords.insert("co_return",KeywordType::None);
CppKeywords.insert("co_yield",KeywordType::None);
CppKeywords.insert("reflexpr",KeywordType::None);
// its a type
CppKeywords.insert("auto",KeywordType::None);
CppKeywords.insert("bool",KeywordType::None);

View File

@ -154,6 +154,10 @@ const QSet<QString> CppSyntaxer::Keywords {
"union",
"nullptr",
"override",
"final",
"import",
"module",
};
const QSet<QString> CppSyntaxer::StandardAttributes {