Complete Blocks and $IFDEF Bug
Original Reporter info from Mantis: theo @theo222
-
Reporter name:
Original Reporter info from Mantis: theo @theo222
- Reporter name:
Description:
If you press enter in an uncomplete block before a active $IFDEF section,
the "end" statement will be placed inside {IFDEF..} .. {
ENDIF}
Example:
{$DEFINE DEBUG}
procedure TForm1.Button1Click(Sender: TObject);
begin
if true then
begin
writeln('a');
writeln('b');
{$IFDEF DEBUG}
writeln('c');
{$ENDIF}
end;
Set the caret behind writeln('b'); and press enter.
Will result in:
writeln('b');
{$IFDEF DEBUG}
end;
writeln('c');
{$ENDIF}
Lazarus 1.1 r39398M FPC 2.7.1 x86_64-linux-gtk 2
Mantis conversion info:
- Mantis ID: 23401
- Version: 1.1 (SVN)