forked from aniani/vim
updated for version 7.3.379
Problem: C-indenting wrong for static enum. Solution: Skip over "static". (Lech Lorens)
This commit is contained in:
@@ -5138,6 +5138,9 @@ cin_isinit(void)
|
|||||||
if (STRNCMP(s, "typedef", 7) == 0 && !vim_isIDc(s[7]))
|
if (STRNCMP(s, "typedef", 7) == 0 && !vim_isIDc(s[7]))
|
||||||
s = cin_skipcomment(s + 7);
|
s = cin_skipcomment(s + 7);
|
||||||
|
|
||||||
|
if (STRNCMP(s, "static", 6) == 0 && !vim_isIDc(s[6]))
|
||||||
|
s = cin_skipcomment(s + 6);
|
||||||
|
|
||||||
if (STRNCMP(s, "enum", 4) == 0 && !vim_isIDc(s[4]))
|
if (STRNCMP(s, "enum", 4) == 0 && !vim_isIDc(s[4]))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
@@ -299,18 +299,25 @@ char *(array[100]) = {
|
|||||||
|
|
||||||
enum soppie
|
enum soppie
|
||||||
{
|
{
|
||||||
yes = 0,
|
yes = 0,
|
||||||
no,
|
no,
|
||||||
maybe
|
maybe
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum soppie
|
typedef enum soppie
|
||||||
{
|
{
|
||||||
yes = 0,
|
yes = 0,
|
||||||
no,
|
no,
|
||||||
maybe
|
maybe
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static enum
|
||||||
|
{
|
||||||
|
yes = 0,
|
||||||
|
no,
|
||||||
|
maybe
|
||||||
|
} soppie;
|
||||||
|
|
||||||
{
|
{
|
||||||
int a,
|
int a,
|
||||||
b;
|
b;
|
||||||
|
@@ -299,6 +299,13 @@ typedef enum soppie
|
|||||||
maybe
|
maybe
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static enum
|
||||||
|
{
|
||||||
|
yes = 0,
|
||||||
|
no,
|
||||||
|
maybe
|
||||||
|
} soppie;
|
||||||
|
|
||||||
{
|
{
|
||||||
int a,
|
int a,
|
||||||
b;
|
b;
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
379,
|
||||||
/**/
|
/**/
|
||||||
378,
|
378,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user