From c367faad9915c6f780063ebb717a2d5b2aedbebe Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 14 Dec 2011 20:21:35 +0100 Subject: updated for version 7.3.380 Problem: C-indenting wrong for a function header. Solution: Skip to the start paren. (Lech Lorens) --- src/testdir/test3.in | 26 ++++++++++++++++++++++++-- src/testdir/test3.ok | 24 +++++++++++++++++++++++- 2 files changed, 47 insertions(+), 3 deletions(-) (limited to 'src/testdir') diff --git a/src/testdir/test3.in b/src/testdir/test3.in index 6c43732ab..808d03191 100644 --- a/src/testdir/test3.in +++ b/src/testdir/test3.in @@ -1429,7 +1429,7 @@ func(int a STARTTEST :set cino& -2kdd=4][ +2kdd=7][ ENDTEST void func(void) @@ -1478,7 +1478,29 @@ void func3(void) 3, 4, 5, 6}; -printf("Don't you dare indent this line incorrectly!\n); +printf("Don't you dare indent this line incorrectly!\n"); +} + +void +func4(a, b, + c) +int a; +int b; +int c; +{ +} + +void +func5( + int a, + int b) +{ +} + +void +func6( + int a) +{ } STARTTEST diff --git a/src/testdir/test3.ok b/src/testdir/test3.ok index ad1db8539..828166435 100644 --- a/src/testdir/test3.ok +++ b/src/testdir/test3.ok @@ -1331,7 +1331,29 @@ void func3(void) 3, 4, 5, 6}; - printf("Don't you dare indent this line incorrectly!\n); + printf("Don't you dare indent this line incorrectly!\n"); +} + + void +func4(a, b, + c) + int a; + int b; + int c; +{ +} + + void +func5( + int a, + int b) +{ +} + + void +func6( + int a) +{ } -- cgit v1.2.1