1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: C-indenting wrong for static enum.
12 Solution: Skip over "static". (Lech Lorens)
13 Files: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok
16 *** ../vim-7.3.378/src/misc1.c 2011-11-30 17:20:18.000000000 +0100
17 --- src/misc1.c 2011-12-14 19:37:48.000000000 +0100
21 if (STRNCMP(s, "typedef", 7) == 0 && !vim_isIDc(s[7]))
22 s = cin_skipcomment(s + 7);
24 + if (STRNCMP(s, "static", 6) == 0 && !vim_isIDc(s[6]))
25 + s = cin_skipcomment(s + 6);
27 if (STRNCMP(s, "enum", 4) == 0 && !vim_isIDc(s[4]))
30 *** ../vim-7.3.378/src/testdir/test3.in 2011-11-30 17:20:18.000000000 +0100
31 --- src/testdir/test3.in 2011-12-14 20:03:11.000000000 +0100
78 *** ../vim-7.3.378/src/testdir/test3.ok 2011-11-30 17:20:18.000000000 +0100
79 --- src/testdir/test3.ok 2011-12-14 19:37:48.000000000 +0100
96 *** ../vim-7.3.378/src/version.c 2011-12-14 19:22:29.000000000 +0100
97 --- src/version.c 2011-12-14 20:02:19.000000000 +0100
101 { /* Add new patch number below this line */
107 You cannot propel yourself forward by patting yourself on the back.
109 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
110 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
111 \\\ an exciting new programming language -- http://www.Zimbu.org ///
112 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///