Explorar o código

Builder: parser skips multiple comments

Arthur Yefimov %!s(int64=2) %!d(string=hai) anos
pai
achega
b38fe09dc9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
   i := 0;
   IF ~R.eof THEN
-    IF ch = '(' THEN
+    WHILE ch = '(' DO
       ReadCh(R, ch, line, col);
       IF ch = '*' THEN ReadCh(R, ch, line, col); SkipComment(R, ch, s)
       ELSE s[i] := ch; INC(i)