1
0
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:
Bram Moolenaar
2011-12-14 20:05:21 +01:00
parent 323cb95120
commit a528565cf1
4 changed files with 25 additions and 6 deletions

View File

@@ -5138,6 +5138,9 @@ cin_isinit(void)
if (STRNCMP(s, "typedef", 7) == 0 && !vim_isIDc(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]))
return TRUE;

View File

@@ -299,18 +299,25 @@ char *(array[100]) = {
enum soppie
{
yes = 0,
no,
maybe
yes = 0,
no,
maybe
};
typedef enum soppie
{
yes = 0,
no,
maybe
yes = 0,
no,
maybe
};
static enum
{
yes = 0,
no,
maybe
} soppie;
{
int a,
b;

View File

@@ -299,6 +299,13 @@ typedef enum soppie
maybe
};
static enum
{
yes = 0,
no,
maybe
} soppie;
{
int a,
b;

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
379,
/**/
378,
/**/