diff --git a/components/codetools/codecompletiontool.pas b/components/codetools/codecompletiontool.pas index 1789076a30..1ca4f36b46 100644 --- a/components/codetools/codecompletiontool.pas +++ b/components/codetools/codecompletiontool.pas @@ -1655,8 +1655,8 @@ var AddrOperatorPos:=-1; // check assignment operator := if not AtomIs(':=') then exit; - AssignmentOperator:=CurPos.StartPos; ReadPriorAtom; + AssignmentOperator:=CurPos.EndPos; // check event name if not AtomIsIdentifier then exit; PropVarAtom:=CurPos;