Fix indentation of callchains with comments
Weird formatting and indentation of multiline callchains with comments in the middle.
This commit is contained in:
parent
2a4af7a2b2
commit
b0555b99c3
|
@ -499,6 +499,9 @@ private:
|
||||||
|
|
||||||
if (peekIs(tok!"(") && (peekBackIs(tok!")") || peekBack2Is(tok!"!")))
|
if (peekIs(tok!"(") && (peekBackIs(tok!")") || peekBack2Is(tok!"!")))
|
||||||
pushWrapIndent(tok!"(");
|
pushWrapIndent(tok!"(");
|
||||||
|
|
||||||
|
if (peekIs(tok!".") && !indents.topIs(tok!"."))
|
||||||
|
indents.push(tok!".");
|
||||||
}
|
}
|
||||||
writeToken();
|
writeToken();
|
||||||
immutable j = justAddedExtraNewline;
|
immutable j = justAddedExtraNewline;
|
||||||
|
|
Loading…
Reference in New Issue