mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #44
This commit is contained in:
parent
9374214fdf
commit
e73280791a
4 changed files with 18 additions and 3 deletions
|
@ -505,8 +505,11 @@ private:
|
|||
writeToken();
|
||||
if (currentIs(tok!"}", false))
|
||||
tempIndent = 0;
|
||||
else if (!currentIs(tok!")", false) && !currentIs(tok!"]", false))
|
||||
else if (!currentIs(tok!")", false) && !currentIs(tok!"]", false)
|
||||
&& !currentIs(tok!"comment", false))
|
||||
{
|
||||
write(" ");
|
||||
}
|
||||
}
|
||||
regenLineBreakHintsIfNecessary(index - 1);
|
||||
break;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
immutable NameId[] namesA = [{"Aacgr", 0x00386}, // GREEK CAPITAL LETTER ALPHA WITH TONOS
|
||||
{"aacgr", 0x003AC}, // GREEK SMALL LETTER ALPHA WITH TONOS
|
||||
immutable NameId[] namesA = [{"Aacgr", 0x00386}, // GREEK CAPITAL LETTER ALPHA WITH TONOS
|
||||
{"aacgr", 0x003AC}, // GREEK SMALL LETTER ALPHA WITH TONOS
|
||||
];
|
||||
|
|
6
tests/issue0044.d
Normal file
6
tests/issue0044.d
Normal file
|
@ -0,0 +1,6 @@
|
|||
enum Sizeok : int
|
||||
{
|
||||
SIZEOKnone, // size of aggregate is not computed yet
|
||||
SIZEOKdone, // size of aggregate is set correctly
|
||||
SIZEOKfwd, // error in computing size of aggregate
|
||||
}
|
6
tests/issue0044.d.ref
Normal file
6
tests/issue0044.d.ref
Normal file
|
@ -0,0 +1,6 @@
|
|||
enum Sizeok : int
|
||||
{
|
||||
SIZEOKnone, // size of aggregate is not computed yet
|
||||
SIZEOKdone, // size of aggregate is set correctly
|
||||
SIZEOKfwd, // error in computing size of aggregate
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue