Fix #88
This commit is contained in:
parent
66342a99ee
commit
52eabd4f47
|
|
@ -341,7 +341,11 @@ private:
|
||||||
case tok!"in":
|
case tok!"in":
|
||||||
case tok!"is":
|
case tok!"is":
|
||||||
writeToken();
|
writeToken();
|
||||||
if (!currentIs(tok!"("))
|
if (!currentIs(tok!"(") && !currentIs(tok!"{"))
|
||||||
|
write(" ");
|
||||||
|
break;
|
||||||
|
case tok!"case":
|
||||||
|
writeToken();
|
||||||
write(" ");
|
write(" ");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
switch (x)
|
||||||
|
{
|
||||||
|
case+1:
|
||||||
|
case-1:
|
||||||
|
case(1):
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
switch (x)
|
||||||
|
{
|
||||||
|
case +1:
|
||||||
|
case -1:
|
||||||
|
case (1):
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue