Closed CZDanol closed 9 years ago
it's rather like
return complexValue(
env.calculateIdentifier( "#op+", [
env.calculateIdentifier( "#op*", [ a.realPart, b.realPart ], posData ),
env.calculateIdentifier( "#op*", [ a.imaginaryPart, b.imaginaryPart ], posData )
], posData ),
env.calculateIdentifier( "#op-", [
env.calculateIdentifier( "#op*", [ a.imaginaryPart, b.realPart ], posData ),
env.calculateIdentifier( "#op*", [ a.realPart, b.imaginaryPart ], posData )
], posData ),
);
So it's basically ignoring nested (square) brackets and resets the indent on the closing parenthesis' line.
I've partly solved the problem now. Despite that, I need to know whether it shouldn't be
return complexValue(
env.calculateIdentifier( "#op+", [
<tab>env.calculateIdentifier( "#op*", [ a.realPart, b.realPart ], posData ),
instead - just for consistency reasons. So the last line will then include the indent of
the first, the second and a further tab caused by the [
.
Best thing: I established an option to disable that nested-call indentation. There still is no gui for it.
return complexValue(
env.calculateIdentifier( "#op+", [
env.calculateIdentifier( "#op*", [ a.realPart, b.realPart ], posData ),
env.calculateIdentifier( "#op*", [ a.imaginaryPart, b.imaginaryPart ], posData )
], posData ),
env.calculateIdentifier( "#op-", [
env.calculateIdentifier( "#op*", [ a.imaginaryPart, b.realPart ], posData ),
env.calculateIdentifier( "#op*", [ a.realPart, b.imaginaryPart ], posData )
], posData ),
);
Hey, I think the title is quite self-explanatory :)
Here is the case:
(It is not indented like that in the ide)