gleam-lang/gleam

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

Closed

#5,606 opened on Apr 11, 2026

 (3 comments) (0 reactions) (1 assignee)Rust (960 forks)batch import
help wanted

Repository metrics

Stars
 (21,417 stars)
PR merge metrics
 (Avg merge 10d 19h) (69 merged PRs in 30d)

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