[DSLX fmt] closing curly indented too much
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 283
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 135
Description
**Describe the bug**
Formatter indents a closing curly too much.
**To Reproduce**
Start with this code, run format.
```
fn foo(src: float32::F32) -> u32 {
let long_name_long_name_long_name_long_name_long_name_long_name_long_name = true;
match float32::tag(src) {
float32::FloatTag::NAN => u32:0,
float32::FloatTag::INFINITY => u32:0,
float32::FloatTag::ZERO => u32:0,
float32::FloatTag::SUBNORMAL => u32:0,
float32::FloatTag::NORMAL => {
if long_name_long_name_long_name_long_name_long_name_long_name_long_name {
u32:0
} else {
u32:0
}
},
}
}
```
It will move the third from last curly:
```
float32::FloatTag::NORMAL => {
if long_name_long_name_long_name_long_name_long_name_long_name_long_name {
u32:0
} else {
u32:0
}
},
}
}
```
**Expected behavior**
It should not indent that curly. It should not change the input source code, it's already formatted correctly.
Contributor guide
Assessment
This issue has not been assessed yet.