dlang-community / dfmt

Dfmt is a formatter for D source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UDAs with single template argument are sandwiched with declaration

dkorpel opened this issue · comments

Input:

@1 float f() => 1.0;

@"test name" unittest 
{
}

Expected output: the same
Actual dfmt output:

@1float f() => 1.0;

@"test name"unittest
{
}

The spaces after the attributes are removed, leading to code that looks worse or won't even compile anymore if you're unlucky.