Lech Lorens wrote:

> Vim, when 'cino' is set to "(0,ts", will incorrectly indent 
> the following function:
> #v+
> static
> void func(int a
> #if defined(FOO)
>         , int b
>         , int c
> #endif
>         )
> {
> }
> #v-
> 
> in the following way:
> 
> #v+
> static
>         void func(int a
> #if defined(FOO)
>                   , int b
>                   , int c
> #endif
>                  )
> {
> }
> #v-
> 
> while it should as follows:
> 
> #v+
> static
> void func(int a
> #if defined(FOO)
>           , int b
>           , int c
> #endif
>          )
> {
> }
> #v-
> 
> The attached patch fixes the problem and adds a test.

Thanks.  Nice to have a test.

We can use the cin_ispreproc() function.

-- 
"You know, it's at times like this when I'm trapped in a Vogon airlock with
a man from Betelgeuse and about to die of asphyxiation in deep space that I
really wish I'd listened to what my mother told me when I was young!"
"Why, what did she tell you?"
"I don't know, I didn't listen!"
                -- Arthur Dent and Ford Prefect in Douglas Adams'
                   "The Hitchhiker's Guide to the Galaxy"

 /// 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