codetools: parsing record case unitname.type of

git-svn-id: trunk@26703 -
This commit is contained in:
mattias 2010-07-16 22:02:08 +00:00
parent 2a1dff1c80
commit 47c41f9993

View File

@ -4353,6 +4353,10 @@ begin
CreateChildNode; CreateChildNode;
CurNode.Desc:=ctnRecordCase; CurNode.Desc:=ctnRecordCase;
ReadNextAtom; // read ordinal type ReadNextAtom; // read ordinal type
{ case a of
case a:b of
case a:b.c of
}
AtomIsIdentifier(true); AtomIsIdentifier(true);
ReadNextAtom; ReadNextAtom;
if (CurPos.Flag=cafColon) then begin if (CurPos.Flag=cafColon) then begin
@ -4360,6 +4364,11 @@ begin
AtomIsIdentifier(true); AtomIsIdentifier(true);
ReadNextAtom; ReadNextAtom;
end; end;
if CurPos.Flag=cafPoint then begin
ReadNextAtom; // unit.type
AtomIsIdentifier(true);
ReadNextAtom;
end;
if not UpAtomIs('OF') then // read 'of' if not UpAtomIs('OF') then // read 'of'
RaiseStringExpectedButAtomFound('"of"'); RaiseStringExpectedButAtomFound('"of"');
// read all variants // read all variants