cnpack / cnvcl

CnPack VCL Components
http://www.cnpack.org
335 stars 102 forks source link

[Code Formatter] inline var with anonymous method #12

Closed Sorien closed 3 years ago

Sorien commented 3 years ago
procedure foo();
begin
  while True do
  begin
    var List := Faa(Licence,
      function(Item: TData): TResult
      begin
        Result := crAdd;
      end);
  end;
end;

after

procedure foo();
begin
  while True do
  begin
    var List := Faa(Licence,
  function(Item: TData): TResult
  begin
    Result := crAdd;
  end);
  end;
end;

when you remove var formatting is ok

Sorien commented 3 years ago

sorry wrong repo