mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
* fixes #20553; don't format code for stropping identifier * add tests * Update nimpretty/tests/expected/simple.nim
30 lines
286 B
Nim
30 lines
286 B
Nim
|
|
var x: int = 2
|
|
|
|
echo x
|
|
# bug #9144
|
|
|
|
proc a() =
|
|
while true:
|
|
discard
|
|
# comment 1
|
|
|
|
# comment 2
|
|
discard
|
|
|
|
# bug #15596
|
|
discard ## comment 3
|
|
|
|
discard # comment 4
|
|
|
|
|
|
# bug #20553
|
|
|
|
let `'hello` = 12
|
|
echo `'hello`
|
|
|
|
|
|
proc `'u4`(n: string) =
|
|
# The leading ' is required.
|
|
discard
|