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 on comma-last object literals in var statements #3

Closed tamzinblake closed 13 years ago

tamzinblake commented 13 years ago

What happens:

var error_text = {
    code_label: 'Error Code: ',
    http_label: 'HTTP error',
}

What should happen:

var error_text = {
  code_label: 'Error Code: ',
  http_label: 'HTTP error',
}
tamzinblake commented 13 years ago

This is an instance of issue #4 - 'tab' again after a second fixes the tab.