Problem: C-indenting wrong for static enum.
Solution: Skip over "static". (Lech Lorens)
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;
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;
maybe
};
+static enum
+{
+ yes = 0,
+ no,
+ maybe
+} soppie;
+
{
int a,
b;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 379,
/**/
378,
/**/