mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-19 18:53:30 +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;
|
||||
CurNode.Desc:=ctnRecordCase;
|
||||
ReadNextAtom; // read ordinal type
|
||||
{ case a of
|
||||
case a:b of
|
||||
case a:b.c of
|
||||
}
|
||||
AtomIsIdentifier(true);
|
||||
ReadNextAtom;
|
||||
if (CurPos.Flag=cafColon) then begin
|
||||
@ -4360,6 +4364,11 @@ begin
|
||||
AtomIsIdentifier(true);
|
||||
ReadNextAtom;
|
||||
end;
|
||||
if CurPos.Flag=cafPoint then begin
|
||||
ReadNextAtom; // unit.type
|
||||
AtomIsIdentifier(true);
|
||||
ReadNextAtom;
|
||||
end;
|
||||
if not UpAtomIs('OF') then // read 'of'
|
||||
RaiseStringExpectedButAtomFound('"of"');
|
||||
// read all variants
|
||||
|
||||
Loading…
Reference in New Issue
Block a user