mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 17:49:09 +02:00
* correctly handle directives for anonymous functions
This commit is contained in:
parent
e8b0fc88e3
commit
92082ab28f
@ -3434,8 +3434,13 @@ const
|
|||||||
begin
|
begin
|
||||||
{ support "record p : procedure stdcall end;" and
|
{ support "record p : procedure stdcall end;" and
|
||||||
"var p : procedure stdcall = nil;" }
|
"var p : procedure stdcall = nil;" }
|
||||||
if (pd_procvar in pdflags) and
|
if (
|
||||||
(token in [_END,_RKLAMMER,_EQ]) then
|
(pd_procvar in pdflags) and
|
||||||
|
(token in [_END,_RKLAMMER,_EQ])
|
||||||
|
) or (
|
||||||
|
(po_anonymous in pd.procoptions) and
|
||||||
|
(token in [_BEGIN,_VAR,_CONST,_TYPE,_LABEL,_FUNCTION,_PROCEDURE,_OPERATOR])
|
||||||
|
) then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user