Fix #89
This commit is contained in:
parent
b07ecacb91
commit
66342a99ee
|
@ -474,7 +474,7 @@ private:
|
|||
case tok!";":
|
||||
if (peekIs(tok!"else") && ifIndents.length)
|
||||
tempIndent = ifIndents.top();
|
||||
else if (!peekIs(tok!"}"))
|
||||
else if (!peekIs(tok!"}") || peekIs(tok!"comment", false))
|
||||
{
|
||||
if (ifIndents.length)
|
||||
{
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
unittest
|
||||
{
|
||||
if (x)
|
||||
doSomething();
|
||||
//doSomethingElse();
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
unittest
|
||||
{
|
||||
if (x)
|
||||
doSomething();
|
||||
//doSomethingElse();
|
||||
}
|
Loading…
Reference in New Issue