Mercurial > vim
diff src/testdir/test3.in @ 2776:cdefcbb70e8c v7.3.164
updated for version 7.3.164
Problem: C-indenting: a preprocessor statement confuses detection of a
function delcaration.
Solution: Ignore preprocessor lines. (Lech Lorens) Also recognize the style
to put a comma before the argument name.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 28 Apr 2011 13:02:09 +0200 |
parents | 18ee39301b82 |
children | ac639ca9f58f |
line wrap: on
line diff
--- a/src/testdir/test3.in +++ b/src/testdir/test3.in @@ -1315,6 +1315,35 @@ int main () } STARTTEST +:set cino=(0,ts +2kdd=][ +ENDTEST + +void func(int a +#if defined(FOO) + , int b + , int c +#endif + ) +{ +} + +STARTTEST +:set cino=(0 +2kdd=][ +ENDTEST + +void +func(int a +#if defined(FOO) + , int b + , int c +#endif + ) +{ +} + +STARTTEST :g/^STARTTEST/.,/^ENDTEST/d :1;/start of AUTO/,$wq! test.out ENDTEST