mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #128
This commit is contained in:
parent
aec084e23e
commit
e2390521b5
4 changed files with 16 additions and 1 deletions
|
@ -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(" ");
|
||||
}
|
||||
}
|
||||
|
|
5
tests/allman/issue0128.d.ref
Normal file
5
tests/allman/issue0128.d.ref
Normal file
|
@ -0,0 +1,5 @@
|
|||
unittest
|
||||
{
|
||||
string[string] aa = ["a" : "b"];
|
||||
auto x = "a" in aa;
|
||||
}
|
5
tests/issue0128.d
Normal file
5
tests/issue0128.d
Normal file
|
@ -0,0 +1,5 @@
|
|||
unittest
|
||||
{
|
||||
string[string] aa = ["a":"b"];
|
||||
auto x = "a" in aa;
|
||||
}
|
4
tests/otbs/issue0128.d.ref
Normal file
4
tests/otbs/issue0128.d.ref
Normal file
|
@ -0,0 +1,4 @@
|
|||
unittest {
|
||||
string[string] aa = ["a" : "b"];
|
||||
auto x = "a" in aa;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue