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:
@@ -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
|
||||
)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user