www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - dfmt 0.2.0

reply "Brian Schott" <briancschott gmail.com> writes:
dfmt 0.2.0 is available at 
https://github.com/Hackerpilot/dfmt/releases/tag/v0.2.0.

dfmt is a formatter for D source code.

Version 0.2.0 fixes several bugs and includes improved line 
wrapping logic. The project now has 85 regression test cases and 
is becoming much more stable. dfmt is used to format its own 
source code, which can be viewed here: 
https://github.com/Hackerpilot/dfmt/blob/master/src/dfmt.d

Changelogs:

0.2.0:
#109 Prefer breaking 'for' and 'foreach' loops at semicolons 
instead of in expressions
#108 Wrong indentation for 'with (...) final switch (...)'
#107 Incorrect indentation for cases in 'switch' inside of 'with'
#106 Extra space added after 'enum' keyword in anonymous typed 
enum
#103 Improved enum formatting
#71 Comment after if moved to if line lacks space before it
#63 Splitter/indenter indents more when splitting more than once
#48 Should keep formatting of UDA
#47 Splitter should avoid splitting inner expressions
#27 Trailing whitespace is inserted on blank line between comments
#23 Better Formatting for Array Literals
#20 Extra newlines added to block comments

0.1.10:
#101: Doesn't seem to handle #! lines

0.1.9:
#100 Wrong case indent with switch inside labeled loop
#99 Indentation level incorrect after line-wrapped if conditon 
with unbraced if statement
#98 Brace after commented if without braces is indented

0.1.8:
#96 Unbraced decl inside version is no longer on the same line
#95 Brace after if without braces is indented
#42 Version statements should have enclosed statement on next line
Mar 17 2015
next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 3/17/2015 12:34 PM, Brian Schott wrote:
 dfmt 0.2.0 is available at
https://github.com/Hackerpilot/dfmt/releases/tag/v0.2.0.

 dfmt is a formatter for D source code.

 Version 0.2.0 fixes several bugs and includes improved line wrapping logic. The
 project now has 85 regression test cases and is becoming much more stable. dfmt
 is used to format its own source code, which can be viewed here:
 https://github.com/Hackerpilot/dfmt/blob/master/src/dfmt.d
I think it is looking excellent. I suggest adding comments to dfmt.d in various manners, to see how dfmt handles them.
Mar 17 2015
prev sibling parent "Brian Schott" <briancschott gmail.com> writes:
https://github.com/Hackerpilot/dfmt/releases/tag/v0.2.1

0.2.1 fixes an issue with string literals that are immediately 
followed by identifiers.
Mar 17 2015