codetools: identifier completion: no brackets outside of statements

git-svn-id: trunk@16670 -
This commit is contained in:
mattias 2008-09-22 09:40:09 +00:00
parent d7a960e8ba
commit b5887faf33

View File

@ -455,6 +455,7 @@ begin
icvProcWithParams:
// add brackets for parameter lists
if (AddChar='')
and (ilcfStartInStatement in IdentList.ContextFlags)
and (not IdentList.StartUpAtomBehindIs('('))
and (not IdentList.StartUpAtomInFrontIs('@')) then begin
Result:=Result+'()';
@ -465,6 +466,7 @@ begin
icvIndexedProp:
// add brackets for parameter lists
if (AddChar='')
and (ilcfStartInStatement in IdentList.ContextFlags)
and (not IdentList.StartUpAtomBehindIs('[')) then begin
Result:=Result+'[]';
inc(CursorToLeft);