gleam-lang/gleam

Formatter unnecessarily wraps expressions inside bit array size segments in a block.

Open

#5606 opened on Apr 11, 2026

View on GitHub
 (3 comments) (0 reactions) (1 assignee)Rust (21,417 stars) (960 forks)batch import
help wanted

Description

Given this like:

  let slice = <<bits:bits-size(count * marshal_zone_size)-unit(8)>>

The formatter will modify it to:

  let slice = <<bits:bits-size({ count * marshal_zone_size })-unit(8)>>

Even though the original is less than 80 characters wide.

Contributor guide