Hi Bram,

2017-1-7(Sat) 23:40:11 UTC+9 Bram Moolenaar:
> Patch 8.0.0148
> Problem:    When a C preprocessor statement has two line continuations the
>             following line does not have the right indent. (Ken Takata)
> Solution:   Add the indent of the previous continuation line. (Hirohito
>             Higashi)
> Files:      src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok
> 
> 
> *** ../vim-8.0.0147/src/misc1.c       2016-11-17 21:30:17.144445729 +0100
> --- src/misc1.c       2017-01-07 14:09:00.601851661 +0100
> ***************
> *** 5422,5428 ****
>   static int  cin_first_id_amount(void);
>   static int  cin_get_equal_amount(linenr_T lnum);
>   static int  cin_ispreproc(char_u *);
> - static int  cin_ispreproc_cont(char_u **pp, linenr_T *lnump);
>   static int  cin_iscomment(char_u *);
>   static int  cin_islinecomment(char_u *);
>   static int  cin_isterminated(char_u *, int, int);
> --- 5422,5427 ----

Thanks including my patch.
Perhaps, it seems that some of my patch is not reflected.

Please check the following text.

diff --git a/src/misc1.c b/src/misc1.c
index 3630d7b..1f16958 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -5422,7 +5422,7 @@ static int        skip_label(linenr_T, char_u **pp);
 static int     cin_first_id_amount(void);
 static int     cin_get_equal_amount(linenr_T lnum);
 static int     cin_ispreproc(char_u *);
-static int     cin_ispreproc_cont(char_u **pp, linenr_T *lnump);
+static int     cin_ispreproc_cont(char_u **pp, linenr_T *lnump, int *amount);
 static int     cin_iscomment(char_u *);
 static int     cin_islinecomment(char_u *);
 static int     cin_isterminated(char_u *, int, int);

--
Best regards,
Hirohito Higashi (a.k.a. h_east)

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui