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