This commit is contained in:
Hackerpilot 2016-01-22 04:53:20 -08:00
parent 98f443d3f1
commit 268657831b
4 changed files with 19 additions and 0 deletions

View file

@ -563,6 +563,8 @@ private:
if (currentIs(tok!"("))
{
writeParens(false);
if (tokens[index].type == tok!"{")
return;
if (index < tokens.length && tokens[index - 1].line < tokens[index].line)
newline();
else

View file

@ -0,0 +1,6 @@
@OneOf("group1")
{
JSONValue[string] fred;
bool mertz;
bool ethel;
}

6
tests/issue0219.d Normal file
View file

@ -0,0 +1,6 @@
@OneOf("group1")
{
JSONValue[string] fred;
bool mertz;
bool ethel;
}

View file

@ -0,0 +1,5 @@
@OneOf("group1") {
JSONValue[string] fred;
bool mertz;
bool ethel;
}