mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
parent
cd5f5f644b
commit
8f11f3291f
4 changed files with 7 additions and 3 deletions
|
@ -283,11 +283,12 @@ private:
|
|||
}
|
||||
else if (current.type == tok!"switch")
|
||||
formatSwitch();
|
||||
else if (current.type == tok!"version" && peekIs(tok!"("))
|
||||
else if ((current.type == tok!"version" || current.type == tok!"extern")
|
||||
&& peekIs(tok!"("))
|
||||
{
|
||||
writeToken();
|
||||
write(" ");
|
||||
writeParens(false);
|
||||
writeParens(true);
|
||||
}
|
||||
else if (currentIsBlockHeader())
|
||||
{
|
||||
|
|
|
@ -1 +1 @@
|
|||
extern(C++) int HtmlNamedEntity(const(char)* p, size_t length);
|
||||
extern (C++) int HtmlNamedEntity(const(char)* p, size_t length);
|
||||
|
|
2
tests/issue0039.d
Normal file
2
tests/issue0039.d
Normal file
|
@ -0,0 +1,2 @@
|
|||
version(AArch64)
|
||||
int x = 10;
|
1
tests/issue0039.d.ref
Normal file
1
tests/issue0039.d.ref
Normal file
|
@ -0,0 +1 @@
|
|||
version (AArch64) int x = 10;
|
Loading…
Add table
Add a link
Reference in a new issue