inim-repl / INim

Interactive Nim shell / REPL / Playground
MIT License
644 stars 23 forks source link

How to outdent? #112

Open HJarausch opened 4 years ago

HJarausch commented 4 years ago

I am trying to enter a 'proc' definition like

  proc T(x:int) : int =
      if x == 0 :
        echo "got 0"
      else :
        echo "got ",x
     result= x

but I cannot terminate indentation making it impossible to enter such a procedure

Tangdongle commented 4 years ago

What version of Nim are you running?

ynfle commented 3 years ago

It works if you enter an empty line, ie. just press enter