Jump to content

Miko330

Members
  • Content Count

    3
  • Joined

  • Last visited

Everything 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.
  2. Miko330

    Problem indent with inline var inside try/finally

    @baka0815 as before + try/finally/except block
  3. Miko330

    Problem indent with inline var inside try/finally

    The inline var line is not indented. what i want : try var a := 2; test(a); finally end; and the formatter gives me this : try var a:=2; test(a); finally end;
×