浏览代码

* fix hint parsing after UNIT token.

git-svn-id: trunk@15704 -
marco 15 年之前
父节点
当前提交
5dde3abcdc
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;