Fix DocComments in the case of a DocComment following a normal comment straight away
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
DataHoarder 2021-08-03 01:56:08 +02:00
parent e4c90e1c53
commit 71f3fb6f36

View file

@ -268,7 +268,7 @@ void Parser::parse() {
} else if (!isComment) {
currentValue += c;
} else if (!isDocComment){
if(currentComment.empty() && c == ';'){ //DocComment, should not appear
if((currentComment.empty() || currentComment.back() == '\n') && c == ';'){ //DocComment, should not appear
isDocComment = true;
}else{
currentComment += c;