* fixes #20553; don't format code for stropping identifier * add tests * Update nimpretty/tests/expected/simple.nim
This commit is contained in:
parent
169d3fda00
commit
6082b9ea5d
3 changed files with 31 additions and 5 deletions
|
|
@ -16,3 +16,14 @@ proc a() =
|
|||
discard ## comment 3
|
||||
|
||||
discard # comment 4
|
||||
|
||||
|
||||
# bug #20553
|
||||
|
||||
let `'hello` = 12
|
||||
echo `'hello`
|
||||
|
||||
|
||||
proc `'u4`(n: string) =
|
||||
# The leading ' is required.
|
||||
discard
|
||||
|
|
|
|||
|
|
@ -16,3 +16,14 @@ proc a() =
|
|||
discard## comment 3
|
||||
|
||||
discard # comment 4
|
||||
|
||||
|
||||
# bug #20553
|
||||
|
||||
let `'hello` = 12
|
||||
echo `'hello`
|
||||
|
||||
|
||||
proc `'u4`(n: string) =
|
||||
# The leading ' is required.
|
||||
discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue