codetools: search for ctnIndentifier with unit prefixes, bug #11577

git-svn-id: trunk@26424 -
This commit is contained in:
mattias 2010-07-02 19:59:54 +00:00
parent e03811d82e
commit 4d65ff6a5d

View File

@ -2313,10 +2313,13 @@ begin
Result:=false;
// search in cleaned source
MoveCursorToCleanPos(Params.Identifier);
if Params.ContextNode.Desc<>ctnIdentifier then
StartPos:=-1
else
StartPos:=GetHybridCursorStart;
StartPos:=-1;
if Params.ContextNode.Desc=ctnIdentifier then begin
if HybridCursorType=hcDirty then
StartPos:=DirtySrc.CurPos.StartPos
else
StartPos:=Params.ContextNode.StartPos;
end;
ReadNextAtom;
EndPos:=CurPos.EndPos;
ReadNextAtom;