-
Notifications
You must be signed in to change notification settings - Fork 144
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 error after anonymous function block #79
Comments
Oddly enough, this works for similar cases; the val has to the first thing in the block, and there has to be a parameter
indents the "wrong" line correctly, as does
I think even the first case above is behaving incorrectly; it's setting the indentation for the "wrong" line to be the same as the |
We've seen this before. For some reason (it seems) that Can you set that and see if it fixes things? |
nope, I had the setting on the (empty) default. edit: virtualedit=all has no effect either. |
Hmm... interesting. I actually can reproduce this. object Foo {
def foo {
val bar = { item =>
}
wrong
}
} object Foo {
def foo {
val bar = { item
}
wrong
}
} object Foo {
def foo {
val bar = {
}
right
}
} So it's something to do with the fact that |
which fits the regex @andrewla pointed out. |
The fix I tried is
I don't remember what it broke, though. |
Looks like this on 7.4.491.
The text was updated successfully, but these errors were encountered: