IDE: identifier completion: adding := : checks if there is already a :=

git-svn-id: trunk@12376 -
This commit is contained in:
mattias 2007-10-08 10:24:02 +00:00
parent cfa90e6bd1
commit 97e18a00f6

View File

@ -508,7 +508,8 @@ begin
end;}
if (ilcfStartIsLValue in IdentList.ContextFlags)
and (not IdentItem.HasChilds) then begin
and (not IdentItem.HasChilds)
and (not IdentList.StartUpAtomBehindIs(':=')) then begin
if (atIdentifier in CodeToolsOpts.DoInsertSpaceAfter)
or (atSymbol in CodeToolsOpts.DoInsertSpaceInFront) then
Result:=Result+' ';