highlights "import"/"module"/"override"/"final"
This commit is contained in:
parent
741b814e1d
commit
4c8e88ce1b
|
@ -3560,7 +3560,6 @@ bool CppParser::handleStatement(int maxIndex)
|
||||||
//Q_ASSERT(mIndex<999999);
|
//Q_ASSERT(mIndex<999999);
|
||||||
|
|
||||||
return mIndex < maxIndex;
|
return mIndex < maxIndex;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CppParser::handleStructs(bool isTypedef, int maxIndex)
|
void CppParser::handleStructs(bool isTypedef, int maxIndex)
|
||||||
|
|
|
@ -150,7 +150,6 @@ void initParser()
|
||||||
CppKeywords.insert("co_return",KeywordType::None);
|
CppKeywords.insert("co_return",KeywordType::None);
|
||||||
CppKeywords.insert("co_yield",KeywordType::None);
|
CppKeywords.insert("co_yield",KeywordType::None);
|
||||||
CppKeywords.insert("reflexpr",KeywordType::None);
|
CppKeywords.insert("reflexpr",KeywordType::None);
|
||||||
|
|
||||||
// its a type
|
// its a type
|
||||||
CppKeywords.insert("auto",KeywordType::None);
|
CppKeywords.insert("auto",KeywordType::None);
|
||||||
CppKeywords.insert("bool",KeywordType::None);
|
CppKeywords.insert("bool",KeywordType::None);
|
||||||
|
|
|
@ -154,6 +154,10 @@ const QSet<QString> CppSyntaxer::Keywords {
|
||||||
"union",
|
"union",
|
||||||
|
|
||||||
"nullptr",
|
"nullptr",
|
||||||
|
"override",
|
||||||
|
"final",
|
||||||
|
"import",
|
||||||
|
"module",
|
||||||
};
|
};
|
||||||
|
|
||||||
const QSet<QString> CppSyntaxer::StandardAttributes {
|
const QSet<QString> CppSyntaxer::StandardAttributes {
|
||||||
|
|
Loading…
Reference in New Issue