Fix #151
This commit is contained in:
parent
e16c7bd465
commit
56ea97efbb
|
|
@ -261,7 +261,13 @@ private:
|
||||||
{
|
{
|
||||||
if (index < tokens.length && prevTokenEndLine == tokens[index].line)
|
if (index < tokens.length && prevTokenEndLine == tokens[index].line)
|
||||||
{
|
{
|
||||||
if (!currentIs(tok!"{"))
|
if (currentIs(tok!"}"))
|
||||||
|
{
|
||||||
|
if (indents.topIs(tok!"{"))
|
||||||
|
indents.pop();
|
||||||
|
write(" ");
|
||||||
|
}
|
||||||
|
else if (!currentIs(tok!"{"))
|
||||||
write(" ");
|
write(" ");
|
||||||
}
|
}
|
||||||
else if (!currentIs(tok!"{"))
|
else if (!currentIs(tok!"{"))
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
void test()
|
||||||
|
{ /* ignore */ }
|
||||||
|
|
||||||
|
void test2()
|
||||||
|
{
|
||||||
|
test();
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
void test()
|
||||||
|
{ /* ignore */ }
|
||||||
|
|
||||||
|
void test2()
|
||||||
|
{
|
||||||
|
test();
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
void test() { /* ignore */ }
|
||||||
|
|
||||||
|
void test2() {
|
||||||
|
test();
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue