Antlr4Formatter icon indicating copy to clipboard operation
Antlr4Formatter copied to clipboard

wrong formatting

Open quantrpeter opened this issue 6 years ago • 4 comments

This

r8  	returns[int operandSize,int col]:

will become

r8 returns [ i n t   o p e r a n d S i z e , i n t   c o l ]

Many spaces inserted between characters, which is wrong. thanks

quantrpeter avatar Oct 13 '19 07:10 quantrpeter

@quantrpeter you are correct. I don't have time to resolve the issue right now. A PR would be appreciated.

teverett avatar Oct 13 '19 17:10 teverett

@quantrpeter We already noticed that. It's the last bug before we can release a first stable release. It's already addressed in: https://github.com/antlr/Antlr4Formatter/issues/25

If you have some spare time to fix this, we would love to accept a PR and finish the release. This is also a prerequisite for merging the spotless integration: https://github.com/diffplug/spotless/pull/328

matthiasbalke avatar Feb 01 '20 13:02 matthiasbalke

@quantrpeter This bug should be fixed in version 1.2.1. Would you mind trying the new version?

matthiasbalke avatar Jul 01 '20 18:07 matthiasbalke

@quantrpeter could you please verify with version 1.2.1?

teverett avatar Sep 06 '20 23:09 teverett