thomblake/js3-mode — Issue #44: dot-first standard indentation is stupid
Author: thomblake
Created: 2011-10-31 20:49:19+00:00
State: open

As it turns out, the standard way js3-mode indents dot-first lines is stupid. While it's in principle nice to have all the dots lined up in nested property-gets, it falls apart as soon as any of them are function calls (which they usually are) that have multi-line content. Example:

```javascript
this.bind('enterframe', function () {
return 1;
})
.bind('keydown', function (e) {
return 2;
})
```

Wouldn't it be better if it was:

```javascript
this.bind('enterframe', function () {
return 1;
})
.bind('keydown', function (e) {
return 2;
})
```