Open vishnumad opened 1 year ago
With the following code, every run of nimpretty causes lines 4-8 get indented further and further.
nimpretty
import std/[strutils, sequtils] let input = "foo,bar,baz" .split(',') .map( proc (n: string): bool = return true )
Output after run 1:
let input = "foo,bar,baz" .split(',') .map( proc (n: string): bool = return true )
Output after run 2:
Output after run 3:
Nim Compiler Version 1.6.10 [Linux: amd64] Compiled at 2022-11-21 Copyright (c) 2006-2021 by Andreas Rumpf
git hash: f1519259f85cbdf2d5ff617c6a5534fcd2ff6942 active boot switches: -d:release
No response
May I work on it?
It would be appreciated, go for it!
You may check compiler/layouter.nim and nimpretty defines.
compiler/layouter.nim
Description
With the following code, every run of
nimpretty
causes lines 4-8 get indented further and further.Output after run 1:
Output after run 2:
Output after run 3:
Nim Version
Nim Compiler Version 1.6.10 [Linux: amd64] Compiled at 2022-11-21 Copyright (c) 2006-2021 by Andreas Rumpf
git hash: f1519259f85cbdf2d5ff617c6a5534fcd2ff6942 active boot switches: -d:release
Current Output
No response
Expected Output
Possible Solution
No response
Additional Information
No response