tamzinblake / js3-mode

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

incorrect indenting of function expressions in object literals #22

Closed tamzinblake closed 13 years ago

tamzinblake commented 13 years ago

it does:

  a = { f: function () {
    var a = g
          + h

    return [ a
           , g
           ]
  }
      }

Should be:

  a = { f: function () {
          var a = g
                + h

          return [ a
                 , g
                 ]
        }
      }