lalitmetkar / vim

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

C indenting: preprocessor check causes the code to be indented too much #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In Vim code there is a file called farsi.h which includes code which can be 
simplified to:

char_u foo[]
#ifdef BAR
= { 0, 1
    2, 3 }
#endif
;

char_u baz[]
#ifdef
= { 4, 5,
    6, 7 }
#endif
;

Automatic code indentation in Vim causes everything following the first 
"#endif" to be indented one level too many.

Original issue reported on code.google.com by lech.lor...@gmail.com on 27 Nov 2011 at 10:32

GoogleCodeExporter commented 9 years ago
The attached patch fixes the issue.

Original comment by lech.lor...@gmail.com on 27 Nov 2011 at 10:33

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by brammool...@gmail.com on 30 Nov 2011 at 4:11