purescript-contrib / purescript-vim

Syntax highlighting and indentation for PureScript
BSD 2-Clause "Simplified" License
154 stars 35 forks source link

new lines following line starting with `instance` are indented unnecessarily #2

Closed michaelficarra closed 7 years ago

michaelficarra commented 10 years ago

Due to this line: https://github.com/raichoo/purescript-vim/blob/68edbb413a131363da3444699dbc8804651501e2/indent/purescript.vim#L51

If I remove ,=in, it is fixed, but that gets rid of indentation after lines ending with in.

raichoo commented 10 years ago

Indeed, that is highly annoying. I still have not figured out how to fix that. If you have any idea I'd be grateful for a patch.

Kind regards, raichoo

michaelficarra commented 10 years ago

Judging from the documentation, this doesn't seem possible. Who designed that awful format?

raichoo commented 10 years ago

VimL is a pain to program in, I really hope that neovim will fix this.

gavocanov commented 7 years ago

I'm leaving one empty line before the instance declaration to cope with that, bit annoying but you get used to it. When done you can remove the empty line...