From 0f337b0a1590cdfcd5b5b59799ac49c199565496 Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Fri, 16 Jan 2015 20:50:19 +0100 Subject: [PATCH] Put some space before @ --- src/dfmt.d | 3 ++- tests/heronian.d.ref | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dfmt.d b/src/dfmt.d index ae8dc75..c2c0f91 100644 --- a/src/dfmt.d +++ b/src/dfmt.d @@ -403,7 +403,8 @@ private: else if (current.type == tok!"identifier") { writeToken(); - if (current.type == tok!"identifier" || isKeyword(current.type)) + if (current.type == tok!"identifier" || isKeyword(current.type) + || current.type == tok!"@") write(" "); } else diff --git a/tests/heronian.d.ref b/tests/heronian.d.ref index f7334ff..d9c6d46 100644 --- a/tests/heronian.d.ref +++ b/tests/heronian.d.ref @@ -1,7 +1,7 @@ import std.stdio, std.math, std.range, std.algorithm, std.numeric, std.traits, std.typecons; -double hero(in uint a, in uint b, in uint c) pure nothrow @safe@nogc +double hero(in uint a, in uint b, in uint c) pure nothrow @safe @nogc { immutable s = (a + b + c) / 2.0; immutable a2 = s * (s - a) * (s - b) * (s - c);