summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-12-14 20:05:21 +0100
committerBram Moolenaar <Bram@vim.org>2011-12-14 20:05:21 +0100
commita528565cf1b33f629a192abfc71b0591f139f4a3 (patch)
tree0646bed7f62fecb53b9266d05ee224d6bd43ffc3 /src/misc1.c
parent323cb95120f8e0ba0116ddd87dda7956f80d7388 (diff)
downloadvim-a528565cf1b33f629a192abfc71b0591f139f4a3.zip
updated for version 7.3.379
Problem: C-indenting wrong for static enum. Solution: Skip over "static". (Lech Lorens)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 11a1f94fa..65f56f4f3 100644
--- 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;