mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #426
This commit is contained in:
parent
999c044020
commit
f8f34ff097
4 changed files with 17 additions and 0 deletions
|
@ -716,6 +716,7 @@ private:
|
|||
}
|
||||
else if (index < tokens.length && (currentIs(tok!"@")
|
||||
|| isBasicType(tokens[index].type)
|
||||
|| currentIs(tok!"extern")
|
||||
|| currentIs(tok!"identifier"))
|
||||
&& !currentIsIndentedTemplateConstraint())
|
||||
write(" ");
|
||||
|
|
6
tests/allman/issue0426.d.ref
Normal file
6
tests/allman/issue0426.d.ref
Normal file
|
@ -0,0 +1,6 @@
|
|||
import std.stdio;
|
||||
|
||||
@safe extern (C) void main()
|
||||
{
|
||||
writeln("Hello World!");
|
||||
}
|
5
tests/issue0426.d
Normal file
5
tests/issue0426.d
Normal file
|
@ -0,0 +1,5 @@
|
|||
import std.stdio;
|
||||
|
||||
@safe extern(C) void main() {
|
||||
writeln("Hello World!");
|
||||
}
|
5
tests/otbs/issue0426.d.ref
Normal file
5
tests/otbs/issue0426.d.ref
Normal file
|
@ -0,0 +1,5 @@
|
|||
import std.stdio;
|
||||
|
||||
@safe extern (C) void main() {
|
||||
writeln("Hello World!");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue