zig fmt deletes comments starting with empty comment

Created on 16 Aug 2019  路  3Comments  路  Source: ziglang/zig

If the comment section starts with empty comment line, the entire section gets deleted.

const a;

//
// This
// all
// gets
// deleted
bug standard library

Most helpful comment

I have already fixed this in #2760.

All 3 comments

I have already fixed this in #2760.

Awesome! My google fu is weak...

Thanks @Vexu!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andrewrk picture andrewrk  路  3Comments

andrewrk picture andrewrk  路  3Comments

jayschwa picture jayschwa  路  3Comments

komuw picture komuw  路  3Comments

bheads picture bheads  路  3Comments