xls icon indicating copy to clipboard operation
xls copied to clipboard

dslx_fmt should support waivers

Open hongted opened this issue 1 year ago • 1 comments

Sometimes, it is desirable to not auto format sections of code (ex. comments that should not be reflow'ed). This issue is to support such a mechanism.

hongted avatar Feb 28 '24 02:02 hongted

After some discussion we settled on // dslx-fmt::off and // dslx-fmt::on to control the formatting for phase 1.

Phase 2 will allow an attribute, e.g., #[dslx-fmt::disabled] to be applied to a whole module, function, etc.

dplassgit avatar Oct 15 '24 18:10 dplassgit

This is inserting an extra closing brace sometimes.

dplassgit avatar Nov 18 '24 15:11 dplassgit

I'm going to close this because it's mostly working, and if you want to disable the disabling, just don't disable formatting.

dplassgit avatar Nov 21 '24 19:11 dplassgit