mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #136
This commit is contained in:
parent
9339573a05
commit
3111871465
4 changed files with 12 additions and 1 deletions
|
@ -763,7 +763,7 @@ private:
|
|||
formatAt();
|
||||
break;
|
||||
case tok!"!":
|
||||
if (peekIs(tok!"is") && !peekBackIsOneOf(false, tok!"(", tok!"="))
|
||||
if ((peekIs(tok!"is") || peekIs(tok!"in")) && !peekBackIsOneOf(false, tok!"(", tok!"="))
|
||||
write(" ");
|
||||
goto case;
|
||||
case tok!"...":
|
||||
|
|
4
tests/allman/issue0136.d.ref
Normal file
4
tests/allman/issue0136.d.ref
Normal file
|
@ -0,0 +1,4 @@
|
|||
unittest
|
||||
{
|
||||
auto result = name !in aa;
|
||||
}
|
4
tests/issue0136.d
Normal file
4
tests/issue0136.d
Normal file
|
@ -0,0 +1,4 @@
|
|||
unittest
|
||||
{
|
||||
auto result = name !in aa;
|
||||
}
|
3
tests/otbs/issue0136.d.ref
Normal file
3
tests/otbs/issue0136.d.ref
Normal file
|
@ -0,0 +1,3 @@
|
|||
unittest {
|
||||
auto result = name !in aa;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue