Jump to content

Miko330

Members
  • Content Count

    3
  • Joined

  • Last visited

Posts posted by Miko330


  1. try
       var a := 2;

       test(a);

    finally
    end;

     

    becomes :

    try
    var a:=2;

       test(a);

    finally
    end;

     

    I don't know if this is the right method:

    after adding 2 lines in 'GX_CodeFormatterFormatter.pas' at line 1633

    -------------------------------------------------------------------------

                 end else if (FPrevToken.GetExpression(exp) and SameText(exp, 'for')) then begin
                   // for with inline var declaration
                 end else if (fStack.GetTopType = rtTry) then begin
                   // inline var declaration inside Try/finally block

                 end else begin

    ---------------------------------------------------------------------------

    everything becomes good with the right indentation inside Try/Finally.

     

×