Ilya Bobir wrote:
> I have a pretty working JS indentation script - javascript.vim, but it
> handles only most common cases. It uses the build in C indentation
> rules and does a bit of correction. Really much more corrections is
> required in order to indent JavaScript correctly for all the cases.
> Maybe C indent is a bad starting point for a complete JavaScript
> indentation solution. I've also tried using syntax in order to
> calculate indentation but this attempt lead me to even worth results -
> javascript.vim.bad. Maybe you can fix the syntax based version, as it
> is more promising. IIRC some changes were required in the syntax script
> in order to get better indentation results...
>
> Currently I'm not programming in JavaScript, so I doubt I can devote
> much time to fixing its indentation script. But probably I will be,
> so I am interested in having a complete JavaScript indentation
> solution in Vim.
Whatever this ends up to be: Please send me the best javascript indent
script, so that I can include it with the runtime files. A "best guess"
is better than nothing.
--
hundred-and-one symptoms of being an internet addict:
56. You leave the modem speaker on after connecting because you think it
sounds like the ocean wind...the perfect soundtrack for "surfing the net".
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///