Closed jordi-chacon closed 7 years ago
But what is it that you expect to happen?
I expect it to get indented like this:
class foo {
def bar() {
def a = 1
def b = a +
1
def c =
1
def d = a
.baz()
}
}
Modes for java, javascript and c indent the example above in expected ways:
C:
main() {
int a = 1;
int b = a +
1;
int c = a()
.b()
.foo();
}
Java:
public class Foo {
public String bar() {
int a =
1;
int b = 2 +
a;
int c = foo()
.bar()
.baz();
}
}
Javascript:
function bar() {
var a =
1;
var b = a +
1;
var c = a()
.b()
.foo();
}
I'll see if I can add this as a test, which will then fail and require a bug fix.
Actually it may have to be two tests, one with spaces for indent one with tabs for indent.
Thanks for fixing this!
Hi,
I just installed 20170529.46 and quickly noticed three fundamental indentation issues:
Using Emacs 24.5.1.