noir-lang / noir

Noir is a domain specific language for zero knowledge proofs
https://noir-lang.org
Apache License 2.0
821 stars 177 forks source link

Poor formatting of comptime blocks #5281

Open TomAFrench opened 2 weeks ago

TomAFrench commented 2 weeks ago

Currently the program below

fn main() {
    comptime {
        println("hello world");
    }
}

is formatted into

fn main() {
    comptime
    {
        println("hello world");
    }
}

Ideally the first curly brace would be on the same line as comptime