Browse Source

* fix hint parsing after UNIT token.

git-svn-id: trunk@15704 -
marco 15 years ago
parent
commit
5dde3abcdc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/fcl-passrc/src/pparser.pp

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

@@ -231,7 +231,7 @@ end;
 
 procedure TPasParser.ParseExc(const Msg: String);
 begin
-  raise EParserError.Create(Format(SParserErrorAtToken, [Msg, CurTokenName]),
+  raise EParserError.Create(Format(SParserErrorAtToken, [Msg, CurTokenName]) {$ifdef addlocation}+' ('+inttostr(scanner.currow)+' '+inttostr(scanner.curcolumn)+')'{$endif},
     Scanner.CurFilename, Scanner.CurRow, Scanner.CurColumn);
 end;
 
@@ -1182,6 +1182,7 @@ begin
       Module.PackageName := Engine.Package.Name;
       Engine.Package.Modules.Add(Module);
     end;
+    CheckHint(Module,True);
     ExpectToken(tkSemicolon);
     ExpectToken(tkInterface);
     ParseInterface;