simple-javascript-indenter icon indicating copy to clipboard operation
simple-javascript-indenter copied to clipboard

A vim javascript indent script

Results 7 simple-javascript-indenter issues
Sort by recently updated
recently updated
newest added

Super simple change to add the let keyword. Probably will need to others too... I see there is a test.js file... how is that used? Thanks Matt

Try the following example: ``` var a; if (a) // comment { } ```

``` foo() .bar() .bar() if (a == b && c == d || d == e) { } ```

https://github.com/jiangmiao/simple-javascript-indenter/blob/master/test.js#L229 这两行在我的测试中都是缩进2格, 而test。js中缩进了4格,这是怎么做到的 ``` a = { a : a , b : b } ```

Environment: Win7 + gVim 7.3 Script version: 1.4.6 See screenshot: http://minus.com/mbkxBCRmSn#1 Description I have the below code but the indentation is wrong: ``` javascript var _form = this , $form...

``` javascript foo.bar() .bar() .bar(); var foo = 'bar' + 'bar' + 'bar' ``` it will be very nice if goto ``` javascript function(){ var a = foo.bar() .bar() .bar()...

e.g. ``` javascript foo({ }|) ``` type `,{}` ``` javascript foo({ },{ }); ``` but should be ``` javascript foo({ },{ }); ```