mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 06:42:40 +02:00
codetools: parsing new class type section without following visibility keyword, bug #15335
git-svn-id: trunk@23127 -
This commit is contained in:
parent
8b2a207220
commit
4c254a359a
@ -1076,8 +1076,19 @@ begin
|
||||
CurNode.Desc:=ctnClassTypeProtected
|
||||
else if UpAtomIs('PUBLISHED') then
|
||||
CurNode.Desc:=ctnClassTypePublished
|
||||
else
|
||||
RaiseStringExpectedButAtomFound('public');
|
||||
else begin
|
||||
if CurNode.PriorBrother<>nil then begin
|
||||
case CurNode.PriorBrother.Desc of
|
||||
ctnClassPrivate: CurNode.Desc:=ctnClassTypePrivate;
|
||||
ctnClassProtected: CurNode.Desc:=ctnClassTypeProtected;
|
||||
ctnClassPublic: CurNode.Desc:=ctnClassTypePublic;
|
||||
ctnClassPublished: CurNode.Desc:=ctnClassTypePublished;
|
||||
else
|
||||
RaiseStringExpectedButAtomFound('public');
|
||||
end;
|
||||
end;
|
||||
UndoReadNextAtom;
|
||||
end;
|
||||
Result:=true;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user