mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
updated for version 7.3.195
Problem: "} else" causes following lines to be indented too much. (Rouben
Rostamian)
Solution: Better detection for the "else". (Lech Lorens)
This commit is contained in:
@@ -1345,7 +1345,7 @@ func(int a
|
||||
, int c
|
||||
#endif
|
||||
)
|
||||
{
|
||||
{
|
||||
}
|
||||
|
||||
STARTTEST
|
||||
@@ -1359,6 +1359,34 @@ void func(void)
|
||||
if(y==z)
|
||||
foo=1;
|
||||
else { bar=1;
|
||||
baz=2;
|
||||
}
|
||||
printf("Foo!\n");
|
||||
}
|
||||
|
||||
void func1(void)
|
||||
{
|
||||
char* tab[] = {"foo", "bar",
|
||||
"baz", "quux",
|
||||
"this line used", "to be indented incorrectly"};
|
||||
foo();
|
||||
}
|
||||
|
||||
void func2(void)
|
||||
{
|
||||
int tab[] =
|
||||
{1, 2,
|
||||
3, 4,
|
||||
5, 6};
|
||||
|
||||
printf("This line used to be indented incorrectly.\n");
|
||||
}
|
||||
|
||||
void func3(void)
|
||||
{
|
||||
int tab[] = {
|
||||
1, 2,
|
||||
3, 4,
|
||||
5, 6};
|
||||
|
||||
printf("Don't you dare indent this line incorrectly!\n);
|
||||
|
||||
@@ -1216,6 +1216,34 @@ void func(void)
|
||||
printf("Foo!\n");
|
||||
}
|
||||
|
||||
void func1(void)
|
||||
{
|
||||
char* tab[] = {"foo", "bar",
|
||||
"baz", "quux",
|
||||
"this line used", "to be indented incorrectly"};
|
||||
foo();
|
||||
}
|
||||
|
||||
void func2(void)
|
||||
{
|
||||
int tab[] =
|
||||
{1, 2,
|
||||
3, 4,
|
||||
5, 6};
|
||||
|
||||
printf("This line used to be indented incorrectly.\n");
|
||||
}
|
||||
|
||||
void func3(void)
|
||||
{
|
||||
int tab[] = {
|
||||
1, 2,
|
||||
3, 4,
|
||||
5, 6};
|
||||
|
||||
printf("Don't you dare indent this line incorrectly!\n);
|
||||
}
|
||||
|
||||
|
||||
void func(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user