mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-10 21:42:34 +02:00
codetools: allow exports keyword in units, bug #25724
git-svn-id: trunk@45470 -
This commit is contained in:
parent
aba44adaa0
commit
233aa40f42
@ -3706,7 +3706,7 @@ begin
|
||||
end;
|
||||
|
||||
function TPascalParserTool.KeyWordFuncExports: boolean;
|
||||
{ exports keyword - only allowed in library
|
||||
{ exports keyword
|
||||
|
||||
examples:
|
||||
|
||||
@ -3714,14 +3714,7 @@ function TPascalParserTool.KeyWordFuncExports: boolean;
|
||||
exports unit1.blob;
|
||||
}
|
||||
|
||||
procedure RaiseExportsOnlyAllowedInLibraries;
|
||||
begin
|
||||
SaveRaiseException(ctsExportsClauseOnlyAllowedInLibraries);
|
||||
end;
|
||||
|
||||
begin
|
||||
if not (CurSection in [ctnLibrary,ctnProgram]) then
|
||||
RaiseExportsOnlyAllowedInLibraries;
|
||||
CreateChildNode;
|
||||
CurNode.Desc:=ctnExportsSection;
|
||||
repeat
|
||||
|
Loading…
Reference in New Issue
Block a user