Commit 3fd9e34a authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Ok for multiple class definition

parent 777950a0
Pipeline #118210 passed with stages
in 4 minutes and 29 seconds
......@@ -122,10 +122,8 @@ bool parsePClassConfig(std::list<PClassConfig> & listClassConfig, PFileParser &
bool searchingData(true);
while(!parser.isEndOfFile() && searchingData){
searchingData = false;
}else if(updateCurrentComment(parser, currentComment)){}
while(!parser.isEndOfFile() && searchingData && !parser.isMatch("}")){
if(updateCurrentComment(parser, currentComment)){}
else{ //Si ce n'est pas un séparateur, c'est que l'on a trouvé un nom, de PDataGroup ou de PDataVar ou PDataTable
if(!parseClassConfigAttribut(config, parser, currentComment)){
errorUnexpectedToken(parser, parser.getNextToken());
......@@ -150,7 +148,7 @@ bool parserClassConfig(std::list<PClassConfig> & listClassConfig, std::list<std:
if(! return false;
std::string currentComment("");
while(!parser.isEndOfFile() && !parser.isMatch("}")){
listInclude.push_back(eraseCharsInStr(parser.getUntilKeyWithoutPatern("\n")," \t\n"));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment