jiangmiao / simple-javascript-indenter

A vim javascript indent script
http://www.vim.org/scripts/script.php?script_id=3227
72 stars 8 forks source link

please add 'comma start' style indent #6

Closed guileen closed 12 years ago

guileen commented 12 years ago

I really think this is a good style to prevent comma problem, and it is very popular too. please please add this support, or tell me how to do this?

e.g

var a = b
  , c = d
  , e = f
  ;

foo({
    a : a
  , c : c
  , d : d
  , x : {
      xx : xx
    , yy : yy
    }
  , arr : [{
        aa : aa
      , bb : bb
    }]
});
guileen commented 12 years ago

send a pull request [#7]

jiangmiao commented 12 years ago

Good.