Procházet zdrojové kódy

* Fix some minor sideeffect introduced by r15729. File without "of integer" must remain working.

git-svn-id: trunk@15743 -
marco před 15 roky
rodič
revize
72f53aacd8
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      packages/fcl-passrc/src/pparser.pp

+ 3 - 1
packages/fcl-passrc/src/pparser.pp

@@ -651,7 +651,9 @@ procedure TPasParser.ParseFileType(Element: TPasFileType);
 begin
 begin
   NextToken;
   NextToken;
   If CurToken=tkOf then
   If CurToken=tkOf then
-    Element.ElType := ParseType(nil);
+    Element.ElType := ParseType(nil)
+  else 
+   ungettoken;
 end;
 end;
 
 
 function TPasParser.isEndOfExp:Boolean;
 function TPasParser.isEndOfExp:Boolean;