This commit is contained in:
Hackerpilot 2015-04-16 12:14:39 -07:00
parent aec084e23e
commit e2390521b5
4 changed files with 16 additions and 1 deletions

View file

@ -154,7 +154,8 @@ private:
{
immutable t = tokens[index].type;
if (t == tok!"identifier" || isStringLiteral(t)
|| isNumberLiteral(t) || t == tok!"characterLiteral")
|| isNumberLiteral(t) || t == tok!"characterLiteral"
|| isKeyword(t))
write(" ");
}
}

View file

@ -0,0 +1,5 @@
unittest
{
string[string] aa = ["a" : "b"];
auto x = "a" in aa;
}

5
tests/issue0128.d Normal file
View file

@ -0,0 +1,5 @@
unittest
{
string[string] aa = ["a":"b"];
auto x = "a" in aa;
}

View file

@ -0,0 +1,4 @@
unittest {
string[string] aa = ["a" : "b"];
auto x = "a" in aa;
}