summaryrefslogtreecommitdiffstats
path: root/src/testdir/test3.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-04-28 13:02:09 +0200
committerBram Moolenaar <Bram@vim.org>2011-04-28 13:02:09 +0200
commit8d2d71d4bbd7f13817e7f42ce02b31c4a17ed66f (patch)
treed9e971cde37bc1c33f83b5d04bd65650843f480f /src/testdir/test3.in
parentf1fda2d6e591a5b5bb549e4ca30c9029c544eea9 (diff)
updated for version 7.3.164v7.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.
Diffstat (limited to 'src/testdir/test3.in')
-rw-r--r--src/testdir/test3.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/testdir/test3.in b/src/testdir/test3.in
index 35582bd9c2..62402fb980 100644
--- 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