0
0
mirror of https://github.com/vim/vim.git synced 2025-11-08 10:27:32 -05:00

updated for version 7.3.380

Problem:    C-indenting wrong for a function header.
Solution:   Skip to the start paren. (Lech Lorens)
This commit is contained in:
Bram Moolenaar
2011-12-14 20:21:35 +01:00
parent a528565cf1
commit c367faad99
4 changed files with 81 additions and 10 deletions

View File

@@ -1429,7 +1429,7 @@ func(int a
, int c
#endif
)
{
{
}
STARTTEST
@@ -1478,7 +1478,29 @@ void func3(void)
void func3(void)
{
int tab[] = {
int tab[] = {
1, 2,
3, 4,
5, 6};
printf("Don't you dare indent this line incorrectly!\n");
}
void
func4(a, b,
c)
int a;
int b;
int c;
{
}
void
func5(
int a,
int b)
{
}
void
func6(

View File

@@ -1331,7 +1331,29 @@ void func3(void)
3, 4,
5, 6};
printf("Don't you dare indent this line incorrectly!\n);
printf("Don't you dare indent this line incorrectly!\n");
}
void
func4(a, b,
c)
int a;
int b;
int c;
{
}
void
func5(
int a,
int b)
{
}
void
func6(
int a)
{
}