mirror of
https://github.com/vim/vim.git
synced 2025-10-27 09:24:23 -04:00
updated for version 7.3.179
Problem: C-indent doesn't handle colon in string correctly. Solution: Skip the string. (Lech Lorens)
This commit is contained in:
@@ -1359,6 +1359,19 @@ void func(void)
|
||||
if(y==z)
|
||||
foo=1;
|
||||
else { bar=1;
|
||||
baz=2;
|
||||
}
|
||||
printf("Foo!\n");
|
||||
}
|
||||
|
||||
STARTTEST
|
||||
:set cino&
|
||||
2kdd=][
|
||||
ENDTEST
|
||||
|
||||
void func(void)
|
||||
{
|
||||
cout << "a"
|
||||
<< "b"
|
||||
<< ") :"
|
||||
<< "c";
|
||||
|
||||
@@ -1216,3 +1216,12 @@ void func(void)
|
||||
printf("Foo!\n");
|
||||
}
|
||||
|
||||
|
||||
void func(void)
|
||||
{
|
||||
cout << "a"
|
||||
<< "b"
|
||||
<< ") :"
|
||||
<< "c";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user