Put some space before @

This commit is contained in:
Andreas Zwinkau 2015-01-16 20:50:19 +01:00
parent feb75b4d3b
commit 0f337b0a15
2 changed files with 3 additions and 2 deletions

View File

@ -403,7 +403,8 @@ private:
else if (current.type == tok!"identifier") else if (current.type == tok!"identifier")
{ {
writeToken(); writeToken();
if (current.type == tok!"identifier" || isKeyword(current.type)) if (current.type == tok!"identifier" || isKeyword(current.type)
|| current.type == tok!"@")
write(" "); write(" ");
} }
else else

View File

@ -1,7 +1,7 @@
import std.stdio, std.math, std.range, std.algorithm, std.numeric, std.traits, import std.stdio, std.math, std.range, std.algorithm, std.numeric, std.traits,
std.typecons; 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 s = (a + b + c) / 2.0;
immutable a2 = s * (s - a) * (s - b) * (s - c); immutable a2 = s * (s - a) * (s - b) * (s - c);