www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [SAOC 2023] dfmt rewrite - Weekly update #16

Hi all,

This week was bug hunting and adding more support for splitting 
long lines correctly. I discovered a pretty bad bug in the logic 
for conditional template formatting, where it wouldn't account 
for the entire line length before splitting it. It's been fixed 
now. I've also introduced the logic to split lines at operators 
(`+`, `-`, etc), which lets us add support for the 
`dfmt_split_operator_at_line_end` option.
Jan 05