parse C defines with line breaks
This commit is contained in:
parent
14a92c4c16
commit
1e5ac54147
1 changed files with 1 additions and 0 deletions
|
@ -272,6 +272,7 @@ QMap<QString, int> ParseUtil::readCDefines(QString filename, QStringList prefixe
|
|||
}
|
||||
|
||||
text.replace(QRegularExpression("(//.*)|(\\/+\\*+[^*]*\\*+\\/+)"), "");
|
||||
text.replace(QRegularExpression("(\\\\\\s+)"), "");
|
||||
|
||||
QRegularExpression re("#define\\s+(?<defineName>\\w+)[^\\S\\n]+(?<defineValue>.+)");
|
||||
QRegularExpressionMatchIterator iter = re.globalMatch(text);
|
||||
|
|
Loading…
Reference in a new issue