codetools: FindExpressionTypeOfTerm fixed searching start of term

git-svn-id: trunk@22391 -
This commit is contained in:
mattias 2009-11-03 00:40:57 +00:00
parent 5687aefd2c
commit 61560943a1

View File

@ -6048,7 +6048,7 @@ var
begin
Result:=false;
if StartPos<1 then
StartPos:=FindStartOfTerm(EndPos,NodeTermInType(Params.ContextNode))
StartPos:=FindStartOfTerm(EndPos-1,NodeTermInType(Params.ContextNode))
else if EndPos<1 then
EndPos:=FindEndOfTerm(StartPos,true,WithAsOperator);
if (StartPos<1) then