Hari G wrote:

> The attached patch improves indenting of JavaScript code in Vim and
> also fixes the indenting issues mentioned in some of the earlier posts
> here. It also adds indenting of code that is not within braces.
> Indenting is done through the cindent function (get_c_indent) with the
> cindent options containing 'J1' (no 'j1' required now) . I've tested
> this code for quite some time and have found it working
> satisfactorily. If others could also try out the patch and test it,
> that would be quite helpful. Review and comments welcome.

That's a big change.  Can you please add tests that show what has been
fixed?  Also, testdir/test3.ok has a few comments on lines that are
currently indented wrong.  Are these affected?

-- 
   Another bucket of what can only be described as human ordure hits ARTHUR.
ARTHUR: ... Right!  (to the KNIGHTS) That settles it!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui