Fix indentation of callchains with comments

Weird formatting and indentation of multiline callchains with comments
in the middle.
This commit is contained in:
Eugen Wissner 2022-08-06 00:21:53 +02:00 committed by Jan Jurzitza
parent 2a4af7a2b2
commit 8d42254d47
4 changed files with 6 additions and 3 deletions

View File

@ -499,6 +499,9 @@ private:
if (peekIs(tok!"(") && (peekBackIs(tok!")") || peekBack2Is(tok!"!")))
pushWrapIndent(tok!"(");
if (peekIs(tok!".") && !indents.topIs(tok!"."))
indents.push(tok!".");
}
writeToken();
immutable j = justAddedExtraNewline;