mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 08:38:19 +02:00
codetools: identifier completion: no brackets outside of statements
git-svn-id: trunk@16670 -
This commit is contained in:
parent
d7a960e8ba
commit
b5887faf33
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user