mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 07:40:11 +02:00
codetools: correct ObjCProtocol external block parse
git-svn-id: trunk@33682 -
This commit is contained in:
parent
4e496989d4
commit
be91d94a0d
@ -3846,7 +3846,7 @@ begin
|
|||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
else if UpAtomIs('EXTERNAL') and (ClassDesc in [ctnObjCClass,ctnObjCCategory,ctnObjCProtocol]) then
|
else if UpAtomIs('EXTERNAL') and (ClassDesc in [ctnObjCClass,ctnObjCCategory]) then
|
||||||
begin
|
begin
|
||||||
CreateChildNode;
|
CreateChildNode;
|
||||||
CurNode.Desc:=ctnClassExternal;
|
CurNode.Desc:=ctnClassExternal;
|
||||||
@ -3960,6 +3960,20 @@ begin
|
|||||||
// find end of interface
|
// find end of interface
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
if (CurPos.Flag<>cafSemicolon) then begin
|
if (CurPos.Flag<>cafSemicolon) then begin
|
||||||
|
if CurPos.Flag=cafWord then begin
|
||||||
|
if UpAtomIs('EXTERNAL') and (IntfDesc=ctnObjCProtocol) then
|
||||||
|
begin
|
||||||
|
CreateChildNode;
|
||||||
|
CurNode.Desc:=ctnClassExternal;
|
||||||
|
ReadNextAtom;
|
||||||
|
if UpAtomIs('NAME') then begin
|
||||||
|
ReadNextAtom;
|
||||||
|
ReadConstant(true,false,[]);
|
||||||
|
end;
|
||||||
|
CurNode.EndPos:=CurPos.StartPos;
|
||||||
|
EndChildNode;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
if (CurPos.Flag=cafRoundBracketOpen) then begin
|
if (CurPos.Flag=cafRoundBracketOpen) then begin
|
||||||
// read inheritage brackets
|
// read inheritage brackets
|
||||||
ReadClassInheritance(true);
|
ReadClassInheritance(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user