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 broken #27

Closed tamzinblake closed 13 years ago

tamzinblake commented 13 years ago

Currently, function bodies often indent to 2 spaces past the start of the function keyword. Instead, they should indent to the beginning of the current line, unless there is an open brace, in which case it should count whatever comes after the open brace as the start of the line.

Example:

  {
    listeners: {
      blur: function (field) {
              dataStore.setBaseParam('limit', field.getValue())
            }
    }
  }

Should be:

  {
    listeners: {
      blur: function (field) {
        dataStore.setBaseParam('limit', field.getValue())
      }
    }
  }