This commit is contained in:
Hackerpilot 2015-01-25 11:02:03 -08:00
parent e4ed938515
commit 41854aaeb6
1 changed files with 7 additions and 2 deletions

View File

@ -201,6 +201,11 @@ private:
{ {
writeToken(); writeToken();
tempIndent = 0; tempIndent = 0;
if (index >= tokens.length)
{
newline();
break;
}
if (current.type == tok!"comment") if (current.type == tok!"comment")
break; break;
if (!(t == tok!"import" && current.type == tok!"import")) if (!(t == tok!"import" && current.type == tok!"import"))
@ -222,7 +227,7 @@ private:
} }
assert (length_of_next_chunk > 0); assert (length_of_next_chunk > 0);
writeToken(); writeToken();
if (currentLineLength+1+length_of_next_chunk >= config.columnSoftLimit) if (currentLineLength + 1 + length_of_next_chunk >= config.columnSoftLimit)
{ {
pushIndent(); pushIndent();
newline(); newline();