nim-lang / NimLime

The official Nim programming language plugin for Sublime Text
MIT License
132 stars 34 forks source link

wrong auto-indent following a one-liner `if true: discard` #143

Closed timotheecour closed 1 year ago

timotheecour commented 5 years ago

@Varriount

proc main() =
  if true: discard
  else
main()

after typiing : right after else nimlime removes indentation of else as follows:

proc main() =
  if true: discard
else:
main()

KEY BUG nimlime indent D20190620T173650:here

note: the auto-indent seems to work if the if statement is not a one-liner