From f141ae14619bfbd51a7e6871c55edbdd17ac3417 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 25 May 2019 01:07:03 +0300 Subject: [PATCH] Correctly parse consecutive *s in a comment Parsing state must not be reset at ** because there may be a / after. --- source/programparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2