Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On reindent, lines with "in" keyword are misaligned #2

Open
mganjoo opened this issue Apr 5, 2014 · 1 comment
Open

On reindent, lines with "in" keyword are misaligned #2

mganjoo opened this issue Apr 5, 2014 · 1 comment

Comments

@mganjoo
Copy link

mganjoo commented Apr 5, 2014

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
Copy link
Author

mganjoo commented Apr 5, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant