We're styling the uses section the following way:
uses
Windows
, SysUtils
, Classes
, Graphics
, Forms
;
The attached patch adds two new options to the formatter (line-break page):
'After "uses"' and 'Before the comma'. The latter as a sub-option for 'Between every unit in "uses"' (like 'Except single lines').
'After "uses"' just adds a break after "uses", to start the "uses"-block.
"Before the comma" adds the line feed before the comma in the uses section instead of after it.
I also removed the fixme regarding NoIndentUsesComma and FeedEachUnit as it (currently) does exactly what I intended when I submitted the NoIndentUsesComma-patch some time ago.
First thing: Please keep in mind that GExperts supports the Delphi versions from Delphi 6 to 11, which means the source cannot use language features that were introduced later than Delphi 6 (unless in code that only is compiled for later versions and which is properly $IFDEFed). You were using inline variable declarations with type inference, which both are a very recent addition to the language.
After If fixed that, everything compiles in Delphi 2007 (which always is my first test) and also in Delphi 6, 10.2 and 11, so there is no compilation issue.
I'll now look into the functionality. Did you create a unit test for this?
implemented in revision #3826
Thank you for your contribution!