grain-lang / grain

The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾

Home Page:https://grain-lang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Formatter: disallow double-breaks on attributes

alex-snezhko opened this issue · comments

Currently the formatter is able to pass code like this:

@attr1

// Comment 1

@attr2

// Comment 2

let x = 1

However it would be preferable to force the breaking to look like this:

@attr1
// Comment 1
@attr2
// Comment 2
let x = 1