mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 20:29:12 +02:00
codetools: parsing objcclass end external name string
git-svn-id: trunk@21690 -
This commit is contained in:
parent
ddad9c8091
commit
6a402092e2
@ -3454,16 +3454,27 @@ begin
|
|||||||
if (CurPos.StartPos>SrcLen) then
|
if (CurPos.StartPos>SrcLen) then
|
||||||
SaveRaiseException(ctsEndForClassNotFound);
|
SaveRaiseException(ctsEndForClassNotFound);
|
||||||
end;
|
end;
|
||||||
if ChildCreated then begin
|
|
||||||
// close class
|
|
||||||
CurNode.EndPos:=CurPos.EndPos;
|
|
||||||
EndChildNode;
|
|
||||||
end;
|
|
||||||
if CurPos.Flag=cafEND then begin
|
if CurPos.Flag=cafEND then begin
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
if UpAtomIs('DEPRECATED') or UpAtomIs('PLATFORM') or UpAtomIs('UNIMPLEMENTED')
|
if UpAtomIs('DEPRECATED') or UpAtomIs('PLATFORM') or UpAtomIs('UNIMPLEMENTED')
|
||||||
then
|
then
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
|
if CurPos.Flag=cafSemicolon then
|
||||||
|
ReadNextAtom;
|
||||||
|
if UpAtomIs('EXTERNAL') then begin
|
||||||
|
ReadNextAtom;
|
||||||
|
if UpAtomIs('NAME') then begin
|
||||||
|
ReadNextAtom;
|
||||||
|
ReadConstant(true,false,[]);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
if CurPos.Flag<>cafSemicolon then
|
||||||
|
UndoReadNextAtom;
|
||||||
|
end;
|
||||||
|
if ChildCreated then begin
|
||||||
|
// close class
|
||||||
|
CurNode.EndPos:=CurPos.EndPos;
|
||||||
|
EndChildNode;
|
||||||
end;
|
end;
|
||||||
Result:=true;
|
Result:=true;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user