nimpretty: fixes #10156 [bugfix]
This commit is contained in:
parent
2c03c9f42e
commit
9f82e07b2d
3 changed files with 128 additions and 1 deletions
|
|
@ -22,3 +22,52 @@ proc funB() =
|
|||
3
|
||||
]
|
||||
discard
|
||||
|
||||
|
||||
# bug #10156
|
||||
proc foo =
|
||||
## Comment 1
|
||||
## Comment 2
|
||||
discard
|
||||
|
||||
proc bar =
|
||||
## Comment 3
|
||||
## Comment 4
|
||||
## More here.
|
||||
discard
|
||||
|
||||
|
||||
proc barB =
|
||||
# Comment 5
|
||||
# Comment 6
|
||||
discard
|
||||
|
||||
|
||||
var x: int = 2
|
||||
|
||||
echo x
|
||||
# bug #9144
|
||||
|
||||
proc a() =
|
||||
if cond:
|
||||
while true:
|
||||
discard
|
||||
# comment 1
|
||||
# end while
|
||||
#end if
|
||||
|
||||
# comment 2
|
||||
#if
|
||||
#case
|
||||
#end case
|
||||
#end if
|
||||
discard
|
||||
|
||||
|
||||
proc a() =
|
||||
while true:
|
||||
discard
|
||||
# comment 1
|
||||
|
||||
# comment 2
|
||||
discard
|
||||
|
|
|
|||
|
|
@ -22,3 +22,52 @@ proc funB() =
|
|||
3
|
||||
]
|
||||
discard
|
||||
|
||||
|
||||
# bug #10156
|
||||
proc foo =
|
||||
## Comment 1
|
||||
## Comment 2
|
||||
discard
|
||||
|
||||
proc bar =
|
||||
## Comment 3
|
||||
## Comment 4
|
||||
## More here.
|
||||
discard
|
||||
|
||||
|
||||
proc barB =
|
||||
# Comment 5
|
||||
# Comment 6
|
||||
discard
|
||||
|
||||
|
||||
var x: int = 2
|
||||
|
||||
echo x
|
||||
# bug #9144
|
||||
|
||||
proc a() =
|
||||
if cond:
|
||||
while true:
|
||||
discard
|
||||
# comment 1
|
||||
# end while
|
||||
#end if
|
||||
|
||||
# comment 2
|
||||
#if
|
||||
#case
|
||||
#end case
|
||||
#end if
|
||||
discard
|
||||
|
||||
|
||||
proc a() =
|
||||
while true:
|
||||
discard
|
||||
# comment 1
|
||||
|
||||
# comment 2
|
||||
discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue