mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-12 05:22:56 +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;
|
end;
|
||||||
|
|
||||||
function TPascalParserTool.KeyWordFuncExports: boolean;
|
function TPascalParserTool.KeyWordFuncExports: boolean;
|
||||||
{ exports keyword - only allowed in library
|
{ exports keyword
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
|
|
||||||
@ -3714,14 +3714,7 @@ function TPascalParserTool.KeyWordFuncExports: boolean;
|
|||||||
exports unit1.blob;
|
exports unit1.blob;
|
||||||
}
|
}
|
||||||
|
|
||||||
procedure RaiseExportsOnlyAllowedInLibraries;
|
|
||||||
begin
|
|
||||||
SaveRaiseException(ctsExportsClauseOnlyAllowedInLibraries);
|
|
||||||
end;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if not (CurSection in [ctnLibrary,ctnProgram]) then
|
|
||||||
RaiseExportsOnlyAllowedInLibraries;
|
|
||||||
CreateChildNode;
|
CreateChildNode;
|
||||||
CurNode.Desc:=ctnExportsSection;
|
CurNode.Desc:=ctnExportsSection;
|
||||||
repeat
|
repeat
|
||||||
|
Loading…
Reference in New Issue
Block a user