jason0x43 / vim-js-indent

Vim indenter for standalone and embedded JavaScript
65 stars 9 forks source link

Fix incorrect indent #7

Closed mzlogin closed 7 years ago

mzlogin commented 8 years ago

Statement like console.log('Server running at http://127.0.0.1:4000/'); were considered as a parens start.

console.log('Server running at http://127.0.0.1:4000/');<return>

expect

console.log('Server running at http://127.0.0.1:4000/');
|

but performance is

console.log('Server running at http://127.0.0.1:4000/');
    |
jason0x43 commented 7 years ago

Just cleaning up house here... This was fixed in a different way a few months ago.

mzlogin commented 7 years ago

Glad to hear that so I can delete my branch and switch back to your version now.