Fix #60
This commit is contained in:
parent
7f0b3baecb
commit
e737d56d0d
|
|
@ -314,7 +314,7 @@ private:
|
||||||
else if (current.type == tok!"else")
|
else if (current.type == tok!"else")
|
||||||
{
|
{
|
||||||
writeToken();
|
writeToken();
|
||||||
if (current.type == tok!"if")
|
if (current.type == tok!"if" || (current.type == tok!"static" && peekIs(tok!"if")))
|
||||||
write(" ");
|
write(" ");
|
||||||
else if (current.type != tok!"{")
|
else if (current.type != tok!"{")
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
static if (a) {}
|
||||||
|
else static if (b) {}
|
||||||
|
else {}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
static if (a)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else static if (b)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue