diff src/misc1.c @ 3218:0f193ef0f429 v7.3.379

updated for version 7.3.379 Problem: C-indenting wrong for static enum. Solution: Skip over "static". (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Dec 2011 20:05:21 +0100
parents c025592d7b1d
children 534b3ef1cf14
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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;