Fix #98
This commit is contained in:
parent
2410311022
commit
65ae9dd4a0
|
|
@ -1024,8 +1024,9 @@ private:
|
|||
while (indents.length && isWrapIndent(indents.top))
|
||||
indents.pop();
|
||||
indents.push(tok!"{");
|
||||
if (index == 1 || peekBackIs(tok!":") || peekBackIs(tok!"{")
|
||||
|| peekBackIs(tok!"}") || peekBackIs(tok!")") || peekBackIs(tok!";"))
|
||||
if (index == 1 || peekBackIs(tok!":", true) || peekBackIs(tok!"{", true)
|
||||
|| peekBackIs(tok!"}", true) || peekBackIs(tok!")", true)
|
||||
|| peekBackIs(tok!";", true))
|
||||
{
|
||||
indentLevel = indents.indentSize - 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
unittest
|
||||
{
|
||||
if (!fdmatch)
|
||||
goto Lfd; // comment
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
unittest
|
||||
{
|
||||
if (!fdmatch)
|
||||
goto Lfd; // comment
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue