mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-09 14:17:11 +01:00
* fix hint parsing after UNIT token.
git-svn-id: trunk@15704 -
This commit is contained in:
parent
bea7ff9971
commit
5dde3abcdc
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user