tamzinblake / js3-mode

A chimeric fork of js2-mode and js-mode
GNU General Public License v3.0
181 stars 13 forks source link

function indenting outside of object literals broken #26

Closed tamzinblake closed 13 years ago

tamzinblake commented 13 years ago

In the normal case, function bodies should be indented one step, if this wouldn't make something like an object literal particularly wonky.

It does:

  var f = function () {
            return 1
          }

Should be:

  var f = function () {
    return 1
  }