codetools: parser: dotted uses

git-svn-id: trunk@32101 -
This commit is contained in:
mattias 2011-08-30 07:31:17 +00:00
parent 3695f21e44
commit 119ae65d33

View File

@ -1844,7 +1844,7 @@ function TPascalParserTool.ReadUsesSection(
{ parse uses section
examples:
uses name1, name2 in '', name3;
uses name1, name2 in '', name3.dot;
}
begin
@ -1865,7 +1865,12 @@ begin
CreateChildNode;
CurNode.Desc:=ctnUseUnit;
CurNode.EndPos:=CurPos.EndPos;
ReadNextAtom;
repeat
ReadNextAtom;
if CurPos.Flag<>cafPoint then break;
ReadNextAtom;
AtomIsIdentifier(true);
until false;
if UpAtomIs('IN') then begin
ReadNextAtom;
if not AtomIsStringConstant then