diff options
author | Araq <rumpf_a@web.de> | 2019-07-09 10:08:23 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-09 11:38:01 +0200 |
commit | 0193c8ad2e01140fe86891f90b49a0292b480d2d (patch) | |
tree | 2383b5b5c5965b1286a6dfa9c63b100c20771dcc /compiler | |
parent | 7993d61d002c7230dbf5240eb7012984edb514ad (diff) | |
download | Nim-0193c8ad2e01140fe86891f90b49a0292b480d2d.tar.gz |
nimpretty: yet another improvement
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/layouter.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/layouter.nim b/compiler/layouter.nim index 0c5ed5fa2..327cba2de 100644 --- a/compiler/layouter.nim +++ b/compiler/layouter.nim @@ -302,7 +302,7 @@ template rememberSplit(kind) = proc emitMultilineComment(em: var Emitter, lit: string, col: int) = # re-align every line in the multi-line comment: var i = 0 - var lastIndent = em.indentStack[^1] + var lastIndent = if em.keepIndents > 0: em.indentLevel else: em.indentStack[^1] var b = 0 var dontIndent = false for commentLine in splitLines(lit): |