Fix #225
This commit is contained in:
parent
e2d23726b9
commit
0eea53a628
|
|
@ -898,6 +898,12 @@ private:
|
|||
indents.push(tok!"else");
|
||||
newline();
|
||||
}
|
||||
else if (currentIs(tok!"{") && indents.topAre(tok!"static", tok!"if"))
|
||||
{
|
||||
indents.pop();
|
||||
indents.pop();
|
||||
indents.push(tok!"else");
|
||||
}
|
||||
}
|
||||
|
||||
void formatKeyword()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
static if (condition)
|
||||
int declaration;
|
||||
else
|
||||
{
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
static if (condition)
|
||||
int declaration;
|
||||
else
|
||||
{
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
static if (condition)
|
||||
int declaration;
|
||||
else {
|
||||
}
|
||||
Loading…
Reference in New Issue