codetools: TStandardCodeTool.ExtractOperand ignore positions in space

git-svn-id: trunk@22558 -
This commit is contained in:
mattias 2009-11-13 06:03:49 +00:00
parent bdb43b2c28
commit 555090ae4f
2 changed files with 2 additions and 0 deletions

View File

@ -704,6 +704,7 @@ begin
end;
function TSourceLog.LineColIsSpace(Line, Column: integer): boolean;
// check if there is a non space character in front of or at Line,Column
var
p: PChar;
rg: PLineRange;

View File

@ -3577,6 +3577,7 @@ var
begin
Result:=false;
Operand:='';
if CursorPos.Code.LineColIsSpace(CursorPos.Y,CursorPos.X) then exit;
BuildTreeAndGetCleanPos(trAll,CursorPos,CleanPos,[]);
Node:=FindDeepestNodeAtPos(CleanPos,true);
StartPos:=FindStartOfTerm(CleanPos,NodeTermInType(Node));