Re: Fix for wrong indentation of JavaScript code by cindent

2010-05-24 Fir de Conversatie Hari G
Bram Moolenaar wrote: > Hari Kumar wrote: > > > Vim uses cindent for JS files which works in general nicely. There are > > a few cases where this does not work correctly. F.e. > > > > var a = { > > b: 1, > > c: "hello" > > } > > > > cindent would align b: 1 to col 0 and indent c: "hello" by

RE: Fix for wrong indentation of JavaScript code by cindent

2010-05-22 Fir de Conversatie John Beckett
Hari Kumar G wrote: > Vim uses cindent for JS files which works in general nicely. > There are a few cases where this does not work correctly. F.e. > > var a = { >     b: 1, >     c: "hello" > } > > cindent would align b: 1 to col 0 and indent c: "hello" by > shiftwidth. This is because of how it t

Re: Fix for wrong indentation of JavaScript code by cindent

2010-05-22 Fir de Conversatie Bram Moolenaar
Hari Kumar wrote: > Vim uses cindent for JS files which works in general nicely. There are > a few cases where this does not work correctly. F.e. > > var a = { > b: 1, > c: "hello" > } > > cindent would align b: 1 to col 0 and indent c: "hello" by shiftwidth. > This is because of how it