You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A suggestion from #193 was to remove trailing spaces in conditional directives.
I think this is a good idea, and could be extended to a more general rule for formatting directives.
They can get pretty complicated so we should be careful in implementing this, but there are at least some simple cases that would be nice to cover.
For example
{$ifdef NAME}
normalise casing of the directive (unclear whether lower or upper case is preferable)
one space between identifier and directive
no trailing space
{$COMPILERDIRECTIVE}
no spaces after directive
{$if DEFINED(Foo) and (CONSTANT > 3)}
a real stretch goal would be to format the {$if} directive expressions like a regular Delphi expression
The text was updated successfully, but these errors were encountered:
A suggestion from #193 was to remove trailing spaces in conditional directives.
I think this is a good idea, and could be extended to a more general rule for formatting directives.
They can get pretty complicated so we should be careful in implementing this, but there are at least some simple cases that would be nice to cover.
For example
{$ifdef NAME}
{$COMPILERDIRECTIVE}
{$if DEFINED(Foo) and (CONSTANT > 3)}
{$if}
directive expressions like a regular Delphi expressionThe text was updated successfully, but these errors were encountered: