If I tidy of my code by CTRL+D it is working normally again.
That is strange. Usually Codetools can handle whitespace and other formatting correctly.
Can you reproduce it systematically? Please upload a minimal demo unit or project.
Actually I copied same functions from my original project as empty and autocreated by IDE.
I added a button on the form and I wrote only :
var
a,b,c:
When I press the CRTL+SHIFT+Space it gave me :
unit1.pas(42,4) Error: End of source not found.
message.
I also tried to scan fpc sources but not worked.
Note: This edition downloaded by fpcupdeluxe. I have got another edition of lazarus "Lazarus 2.0.0RC2 r59373 FPC 3.0.4 i386-win32-win32/win64" it is working correctly.
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
public
procedure SaveIniPwd(section,ident,valstr:String);
function LoadIniPwd(section,ident,defstr:String):String;
function CheckIniUsr(section:String):Boolean;
function checkUser(var usr: Integer; var pwd: String): Integer;
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
//
end;
procedure TForm1.SaveIniPwd(section, ident, valstr: String);
var
a,b,c:
begin
//
end;
function TForm1.LoadIniPwd(section, ident, defstr: String): String;
begin
//
end;
function TForm1.CheckIniUsr(section: String): Boolean;
begin
//
end;
function TForm1.checkUser(var usr: Integer; var pwd: String): Integer;
begin
//
end;
end.