Browse Source

Builder: parser skips multiple comments

Arthur Yefimov 2 years ago
parent
commit
b38fe09dc9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Builder.Mod

+ 1 - 1
src/Builder.Mod

@@ -312,7 +312,7 @@ BEGIN
   WHILE ~R.eof & (ch <= ' ') DO ReadCh(R, ch, line, col) END;
   WHILE ~R.eof & (ch <= ' ') DO ReadCh(R, ch, line, col) END;
   i := 0;
   i := 0;
   IF ~R.eof THEN
   IF ~R.eof THEN
-    IF ch = '(' THEN
+    WHILE ch = '(' DO
       ReadCh(R, ch, line, col);
       ReadCh(R, ch, line, col);
       IF ch = '*' THEN ReadCh(R, ch, line, col); SkipComment(R, ch, s)
       IF ch = '*' THEN ReadCh(R, ch, line, col); SkipComment(R, ch, s)
       ELSE s[i] := ch; INC(i)
       ELSE s[i] := ch; INC(i)