diff --git a/src/project.cpp b/src/project.cpp index a95d42a0..f6241591 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -1968,7 +1968,7 @@ QString Project::readCIncbin(QString text, QString label) { QMap Project::readCDefines(QString text, QStringList prefixes) { ParseUtil parser; - text.replace(QRegularExpression("//.*"), ""); + text.replace(QRegularExpression("(//.*)|(\\/+\\*+[^*]*\\*+\\/+)"), ""); QMap allDefines; QMap filteredDefines; QRegularExpression re("#define\\s+(?\\w+)[^\\S\\n]+(?.+)");