Community
Participate
Working Groups
N20081126-2000. The formatter wronglys adds space to //$FALL-THROUGH$ i.e. it becomes: // $FALL-THROUGH$ The correct format we agreed upon is //$FALL-THROUGH$ without a space.
What should we do for the block comment tag /*$FALL-THROUGH$*/ which currently is formatted as: /* $FALL-THROUGH$ */ (i.e. like an usual block comment)?
You could do the same as for NON-NLS: there it looks as if you don't touch the current formatting i.e. if I write //$NON-NLS or // $NON-NLS it is both honored/not touched. Same could be done for fall-through.
Created attachment 119428 [details] Proposed patch If I agreed for line comment to behave like NON-NLS tag, I do not think this add any value for user to do the same for block comment. Set fall through tags using block comment is not recommended, just tolerated by the compiler. So, we can let the formatter considering them as usual block comment, hence systematically adds space at the beginning and at the end of the comment...
Released for 3.5M4 in HEAD stream.
Verified for 3.5M4 using I20081209-0100