Closed tamzinblake closed 12 years ago
The funny thing about the fix in 29d3a21 is that you'll have to re-indent everything if you add another function after the first in a var declaration. But that's better than anyone else's current solution for that, and who does that anyway?
Hey thom, I am still not getting correct indentation with immediately invoking functions, although I am from single var = functions. here is my indentation
;(function(){
foo = 1
}())
var foo = function(){
foo = 1
}
I don't have any js3 vars set at this point other then global externs
That's at the beginning of the buffer, right?
Yup, that was it :D add a newline at the start of the buffer and both work. Thanks so much for this man :)
new version should fix that.
js3-consistent-level-indent-inner-bracket
breaks a lot of intuitively good indentation, but it is preferred by some people because of the following two cases:AND
Ideally, those cases should just be handled correctly.