Open MikeWalrus opened 2 years ago
Pull requests welcome. I have no good understanding of how old aStyle was converted to support Verilog by the original devs. If you have familiarity with these functions from the distant parent project, please see how they substitute into this project.
original file:
after formatting using
-a
expected
This might have something to do with #20 and the member function
ASFormatter::appendSpacePad()
. When there is no character to peek (i.e.: at the end of the line),appendSpacePad
refuses to append a space, which causes the content of the next line to "attach" to the current line without a space in between.To fix this, the implementation of the newer AStyle might be helpful. They have two separate methods to append a space.