codetools: fixed MoveToLastIdentifierThroughDots from Ondrej

git-svn-id: trunk@49868 -
This commit is contained in:
mattias 2015-09-22 15:28:51 +00:00
parent 43bbbdf2d0
commit 2e36d4e2c3

View File

@ -2677,6 +2677,8 @@ function TFindDeclarationTool.GetSmartHint(Node: TCodeTreeNode;
begin
LastPos := ExtTool.CurPos;
ExtTool.ReadNextAtom;
if ExtTool.CurPos.Flag = cafWord then
ExtTool.ReadNextAtom;
while ExtTool.CurPos.Flag = cafPoint do
begin
ExtTool.ReadNextAtom;
@ -2790,7 +2792,6 @@ begin
ReadNextAtom;
if ReadNextUpAtomIs('OF') then
begin
ReadNextAtom;
if (Length(Result) > 0) and (Result[Length(Result)] = ';') then//delete last ";" from set
Delete(Result, Length(Result), 1);