Closed ghost closed 11 years ago
Both of those case is hard to fixed. because script only can calculate the indentation for serveral continous lines nearby. eg: end with ,
then the line is continous.
for case
var con = {
prop: 5,
madness: 7
},
list = [],
hash = {};
assign to complex expression, script cannot know where we have left the block.
for second case, It's incompatible expression in IE, so I prefer to keep it let us know we have input an incompatible expression.
I understand. The first part is not a big issue. I might try tweaking the first case when I get a chance.
I think this indentation plugin works great for JavaScript. Great work! I have noticed a few minor indentation problems: