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 comma first behaviour in nested objects. #9

Closed tamzinblake closed 13 years ago

tamzinblake commented 13 years ago

wrong:

var test = {
  test1: {
    test2: {
      test3: 'this is ok'
    }
  , test4: {
    test5: 'this is weird'
  , test6: 'this is weird also'
  }
  }
}

expected

var test = {
  test1: {
    test2: {
      test3: 'this is ok'
    }
  , test4: {
      test5: 'this is weird'
    , test6: 'this is weird also'
  }
  }
}
tamzinblake commented 13 years ago

closed by commit 66451ad

see alternate_styles.js

tamzinblake commented 13 years ago

Originally submitted by @pigmej here

tamzinblake commented 13 years ago

See the wiki at https://github.com/thomblake/js3-mode/wiki/AlternateStyles