diff --git a/src/Parser.cpp b/src/Parser.cpp index 8e1e70a..b60dd5c 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -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;