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

Fails to indent appropriately when a comment line follows an `if` statement #15

Open Determinant opened 9 years ago

Determinant commented 9 years ago

Try the following example:

var a;
if (a)
      // comment
{
}