google / google/xls

When trying to disable formatting, formatter adds extra = in the middle of a const definition

Open
#1,768 1 comment 0 reactions 0 assignees View on GitHub
bug dslx dslx:fmt
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

**To Reproduce**
Format:

```
const x // dslx-fmt::off
= u32 :1
// dslx-fmt::on
;
```

**Expected behavior**
output = input

**Actual behavior**

```
// dslx-fmt::off
const x = = u32 :1
// dslx-fmt::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.