hasksyn icon indicating copy to clipboard operation
hasksyn copied to clipboard

On reindent, lines with "in" keyword are misaligned

Open mganjoo opened this issue 10 years ago • 1 comments

When realigning a block such as the following using "="

loop acc x:xs = let acc' = acc * 10 + digitToIt x
                in loop acc xs

the in is re-aligned with the variable binding on the previous line, not the let.

mganjoo avatar Apr 05 '14 19:04 mganjoo

I believe it's because of the line if thisl =~ '\s*in$ in indent/haskell.vim. It should probably be if thisl =~ '\s*in\> instead? I could send a pull request if needed.

mganjoo avatar Apr 05 '14 19:04 mganjoo