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

updated for version 7.3.178

Problem:    C-indent doesn't handle code right after { correctly.
Solution:   Fix detecting unterminated line. (Lech Lorens)
This commit is contained in:
Bram Moolenaar
2011-05-10 11:39:19 +02:00
parent 3c9c99cb2c
commit 4ae06c1fa5
4 changed files with 47 additions and 4 deletions

View File

@@ -1343,6 +1343,22 @@ func(int a
#if defined(FOO)
, int b
, int c
#endif
)
{
}
STARTTEST
:set cino&
2kdd=][
ENDTEST
void func(void)
{
if(x==y)
if(y==z)
foo=1;
else { bar=1;
baz=2;
}
printf("Foo!\n");

View File

@@ -1204,3 +1204,15 @@ func(int a
{
}
void func(void)
{
if(x==y)
if(y==z)
foo=1;
else { bar=1;
baz=2;
}
printf("Foo!\n");
}