diff --git a/RedPandaIDE/parser/cppparser.cpp b/RedPandaIDE/parser/cppparser.cpp index 98173aea..09b5405a 100644 --- a/RedPandaIDE/parser/cppparser.cpp +++ b/RedPandaIDE/parser/cppparser.cpp @@ -2657,7 +2657,9 @@ void CppParser::handleEnum(bool isTypedef) int startLine = mTokenizer[mIndex]->line; mIndex++; //skip 'enum' - if (mIndex < tokenCount && mTokenizer[mIndex]->text == "class") { + if (mIndex < tokenCount && + (mTokenizer[mIndex]->text == "class" + || mTokenizer[mIndex]->text == "struct")) { //enum class isEnumClass = true; mIndex++; //skip class @@ -4535,8 +4537,8 @@ void CppParser::internalParse(const QString &fileName) handleInheritances(); // qDebug()<<"parse"<