mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 02:19:16 +02:00
CodeTools: identifier completion: allow procedures as parameters in Delphi mode. Issue #31342
git-svn-id: trunk@54076 -
This commit is contained in:
parent
f4189582b8
commit
bf5c8ee375
@ -2786,8 +2786,8 @@ begin
|
||||
CurrentIdentifierList.ContextFlags+[ilcfIsExpression, ilcfDontAllowProcedures];
|
||||
end;
|
||||
// check if procedure is allowed
|
||||
if (CurPos.Flag in [cafComma, cafRoundBracketOpen, cafEdgedBracketOpen, cafEqual, cafOtherOperator])
|
||||
or ((Scanner.CompilerMode<>cmDelphi) and (CurPos.Flag = cafAssignment)) // "MyEvent := MyProc;" is supported only in Delphi mode
|
||||
if (CurPos.Flag in [cafEdgedBracketOpen, cafEqual, cafOtherOperator])
|
||||
or ((Scanner.CompilerMode<>cmDelphi) and (CurPos.Flag in [cafAssignment, cafComma, cafRoundBracketOpen])) // "MyEvent := MyProc;" and "o.Test(MyProc)" is supported only in Delphi mode
|
||||
then
|
||||
CurrentIdentifierList.ContextFlags:=
|
||||
CurrentIdentifierList.ContextFlags+[ilcfDontAllowProcedures];
|
||||
|
Loading…
Reference in New Issue
Block a user