Open mikex-oss opened 2 days ago
This will no longer be allowed (and the user will be notified!)
It's still broken, but after I fix it, you will be able to write:
let (_foo, _bar, _baz) =
for (i, (foo, bar, baz)): (
// dslx-fmt::off
u32, (FooType[NUM_ELEMS][NUM_BLOCKS], BarType[NUM_ELEMS][NUM_BLOCKS],
bool[NUM_ELEMS][NUM_BLOCKS])
// dslx-fmt::on
) in range(u32:0, 8) {
// this is another cool comment
(foo, bar, baz)
}((zero!<FooType[8][2]>(), zero!<BarType[8][2]>(), all_ones!<bool[8][2]>()));
Describe the bug I tried to disable formatting of a long for loop accumulator type annotation, due to https://github.com/google/xls/issues/1685 making the loop hard to read.
It deleted my entire proc.
To Reproduce Run the following through the formatter:
Output:
Expected behavior Source outside the disabled formatting section should be untouched. All the code should still be present.