0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

updated for version 7.3.164

Problem:    C-indenting: a preprocessor statement confuses detection of a
            function delcaration.
Solution:   Ignore preprocessor lines. (Lech Lorens)  Also recognize the style
            to put a comma before the argument name.
This commit is contained in:
Bram Moolenaar
2011-04-28 13:02:09 +02:00
parent f1fda2d6e5
commit 8d2d71d4bb
4 changed files with 77 additions and 6 deletions

View File

@@ -1314,6 +1314,35 @@ int main ()
int main ()
{
if (cond1 &&
cond2
)
foo;
}
STARTTEST
:set cino=(0,ts
2kdd=][
ENDTEST
void func(int a
#if defined(FOO)
, int b
, int c
#endif
)
{
}
STARTTEST
:set cino=(0
2kdd=][
ENDTEST
void
func(int a
#if defined(FOO)
, int b
, int c
#endif
)
{

View File

@@ -1183,3 +1183,24 @@ int main ()
foo;
}
void func(int a
#if defined(FOO)
, int b
, int c
#endif
)
{
}
void
func(int a
#if defined(FOO)
, int b
, int c
#endif
)
{
}