google / google/xls

Formatter loses comments in `let` statements

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

Description

Similar to #1697 and #1739

**To Reproduce**
Format:

```
let X = // before value
u32:32;
```

**Expected behavior**
Output = input

**Actual behavior**
Comment is lost:

```
let X = u32:32;
```

It also loses a comment between the value and the semicolon.

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.