mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-22 09:49:40 +01:00
codetools: parsing record case unitname.type of
git-svn-id: trunk@26703 -
This commit is contained in:
parent
2a1dff1c80
commit
47c41f9993
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user