vscode-nim
vscode-nim copied to clipboard
Wrong indentation for `else`
Consider a function
proc a(b: int): int =
if b == 1:
return b
else:
return b+1
Written like the above, everything works as expected.
But if you have if part on the same line, like this:
proc a(b: int): int =
if b == 1: return b
writing else: and pressing enter, else: gets de-indented, like this:
proc a(b: int): int =
if b == 1: return b
else:
The same happens for an else in a case