nimpretty: yet another improvement
This commit is contained in:
parent
7993d61d00
commit
0193c8ad2e
3 changed files with 21 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -731,3 +731,13 @@ type
|
|||
|
||||
if true: # just one space before comment
|
||||
echo 7
|
||||
|
||||
# colors.nim:18
|
||||
proc `==` *(a, b: Color): bool
|
||||
## Compares two colors.
|
||||
##
|
||||
|
||||
# colors.nim:18
|
||||
proc `==` *(a, b: Color): bool {.borrow.}
|
||||
## Compares two colors.
|
||||
##
|
||||
|
|
|
|||
|
|
@ -739,3 +739,13 @@ type
|
|||
|
||||
if true: # just one space before comment
|
||||
echo 7
|
||||
|
||||
# colors.nim:18
|
||||
proc `==` *(a, b: Color): bool
|
||||
## Compares two colors.
|
||||
##
|
||||
|
||||
# colors.nim:18
|
||||
proc `==` *(a, b: Color): bool {.borrow.}
|
||||
## Compares two colors.
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue