google / google/xls

An extra newline is unexpectedly inserted after a `dslx-fmt::on` comment

Open
#1,782 1 comment 0 reactions 1 assignee Claimed by @dplassgit View on GitHub
bug dslx dslx:fmt fmt:whitespace
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

Format:

```
import thing1;
import thing2;

fn f() -> (u32, u16) {
let y = u16:64;

// dslx-fmt::off
let y = u16:64;
let x =
u32:41;
(x , y)

// dslx-fmt::on

}
```

inserts the extra newline after the `::on`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.