lalitmetkar / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

C indenting: function headers spanning multiple lines are indented incorrectly #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the following examples the arguments declarations and the function return 
types respectively are not indented while they should be:

#v+
/* comment */
    int
foo(a,
    b)
int a;
int b;
{
    return 0;
}

int
bar(
    int a,
    int b)
{
    return 0;
}
#v-

Original issue reported on code.google.com by lech.lor...@gmail.com on 13 Dec 2011 at 10:00

GoogleCodeExporter commented 9 years ago
The attached patch fixes the described problem.

Original comment by lech.lor...@gmail.com on 13 Dec 2011 at 10:42

Attachments:

GoogleCodeExporter commented 9 years ago
Patch included.

Original comment by brammool...@gmail.com on 14 Dec 2011 at 7:22