From: Mikko Rasa Date: Fri, 24 May 2019 22:07:03 +0000 (+0300) Subject: Correctly parse consecutive *s in a comment X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f141ae14619bfbd51a7e6871c55edbdd17ac3417;p=libs%2Fgl.git Correctly parse consecutive *s in a comment Parsing state must not be reset at ** because there may be a / after. --- diff --git a/source/programparser.cpp b/source/programparser.cpp index 159c3147..3b87ea7b 100644 --- a/source/programparser.cpp +++ b/source/programparser.cpp @@ -263,7 +263,7 @@ void ProgramParser::skip_comment_and_whitespace() { if(*iter=='/') comment = 0; - else + else if(*iter!='*') comment = 3; }