Miko330
-
Content Count
3 -
Joined
-
Last visited
Posts posted by Miko330
-
-
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;
-
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.
Problem indent with inline var inside try/finally
in GExperts
Posted
@baka0815
as before + try/finally/except block