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

Indentation doesn't work correctly if a multiline string is present #556

Closed
bmktuwien opened this issue Mar 27, 2015 · 1 comment
Closed

Comments

@bmktuwien
Copy link

First I am using the newest version 20150327.

It seems currently that the haskell-indentation mode doesn't work correctly if a multine string is present.
For example:

foobar = "foo \
         \bar"
          barfoo = "barfoo"

The line with barfoo just won't indent correctly when I cycle through indentations pressing <Tab> repeatedly. Is this a known issue and is there a known workaround?

@gracjan
Copy link
Contributor

gracjan commented Mar 27, 2015

Issue is known and noted in #324. Fix should not be that hard but not easy either.

You may look inside haskell-indentation-skip-token and do something about this part (looking-at "\"\\([^\\\"]\\|\\\\.\\)*\"").

i'm closing as duplicate.

@gracjan gracjan closed this as completed Mar 27, 2015
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

2 participants