mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 10:09:14 +02:00
CodeTools: support dotted units when handling uses section. Issue #31539
git-svn-id: trunk@54413 -
This commit is contained in:
parent
98f78a3107
commit
f04d742869
@ -1409,7 +1409,7 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
|
|
||||||
if fNewMainUsesSectionUnits=nil then
|
if fNewMainUsesSectionUnits=nil then
|
||||||
fNewMainUsesSectionUnits:=TAVLTree.Create(TListSortCompare(@CompareIdentifiers));
|
fNewMainUsesSectionUnits:=TAVLTree.Create(TListSortCompare(@CompareDottedIdentifiers));
|
||||||
//DebugLn(['TCodeCompletionCodeTool.AddNeededUnitToMainUsesSection AnUnitName="',AnUnitName,'"']);
|
//DebugLn(['TCodeCompletionCodeTool.AddNeededUnitToMainUsesSection AnUnitName="',AnUnitName,'"']);
|
||||||
if fNewMainUsesSectionUnits.Find(AnUnitName)<>nil then exit;
|
if fNewMainUsesSectionUnits.Find(AnUnitName)<>nil then exit;
|
||||||
s:=GetIdentifier(AnUnitName);
|
s:=GetIdentifier(AnUnitName);
|
||||||
@ -8178,6 +8178,11 @@ begin
|
|||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
end;
|
end;
|
||||||
|
while AtomIsChar('.') do
|
||||||
|
begin
|
||||||
|
ReadNextAtom;
|
||||||
|
ReadNextAtom;
|
||||||
|
end;
|
||||||
if AtomIsChar(';') then break;
|
if AtomIsChar(';') then break;
|
||||||
if not AtomIsChar(',') then break;
|
if not AtomIsChar(',') then break;
|
||||||
until (CurPos.StartPos>SrcLen);;
|
until (CurPos.StartPos>SrcLen);;
|
||||||
|
Loading…
Reference in New Issue
Block a user