mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -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:
parent
4ae06c1fa5
commit
aede6ceba3
@ -5801,7 +5801,9 @@ cin_is_cpp_baseclass(col)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s[0] == ':')
|
if (s[0] == '"')
|
||||||
|
s = skip_string(s) + 1;
|
||||||
|
else if (s[0] == ':')
|
||||||
{
|
{
|
||||||
if (s[1] == ':')
|
if (s[1] == ':')
|
||||||
{
|
{
|
||||||
|
@ -1359,6 +1359,19 @@ void func(void)
|
|||||||
printf("Foo!\n");
|
printf("Foo!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STARTTEST
|
||||||
|
:set cino&
|
||||||
|
2kdd=][
|
||||||
|
ENDTEST
|
||||||
|
|
||||||
|
void func(void)
|
||||||
|
{
|
||||||
|
cout << "a"
|
||||||
|
<< "b"
|
||||||
|
<< ") :"
|
||||||
|
<< "c";
|
||||||
|
}
|
||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:g/^STARTTEST/.,/^ENDTEST/d
|
:g/^STARTTEST/.,/^ENDTEST/d
|
||||||
:1;/start of AUTO/,$wq! test.out
|
:1;/start of AUTO/,$wq! test.out
|
||||||
|
@ -1216,3 +1216,12 @@ void func(void)
|
|||||||
printf("Foo!\n");
|
printf("Foo!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void func(void)
|
||||||
|
{
|
||||||
|
cout << "a"
|
||||||
|
<< "b"
|
||||||
|
<< ") :"
|
||||||
|
<< "c";
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
179,
|
||||||
/**/
|
/**/
|
||||||
178,
|
178,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user