gleam-lang/gleam

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

Open

#5,606 opened on 2026年4月11日

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

説明

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.

コントリビューターガイド

Formatter unnecessarily wraps expressions inside bit array size segments in a block. · gleam-lang/gleam#5606 | Good First Issue