arnetheduck / nph

An opinionated code formatter for Nim
Other
77 stars 12 forks source link

Error: invalid indentation #71

Open diegomrsantos opened 3 weeks ago

diegomrsantos commented 3 weeks ago

Trying to format:

if  # some conditions:
    2 >= 1 and
    2 >= 1 and
    2 >= 1:
  discard

fails with:

file.nim(3, 1) Error: invalid indentation
file.nim Error: Skipped file, formatted output cannot be parsed (bug! 86fc4cd)

Nim compiles it with no issues.