On 4/24/2011 4:39 PM, Zvezdan Petkovic wrote:
On Apr 24, 2011, at 5:18 PM, Lech Lorens wrote:
Vim, when 'cino' is set to "(0,ts", will incorrectly indent
the following function:
#v+
static
void func(int a
#if defined(FOO)
, int b
, int c
#endif
)
Also, I've never seen commas positioned as they are in your example.
Style rules are simple. Write as you write in English.
Comma is placed next to the word _before_ it, and has a space _after_ it.
Considering the "#if defined(FOO)" , what you suggest doesn't work well.
I've seen this style, and use it myself, when the comma handling is an
issue with included/excluded lines. Now if parsers allowed a trailing
comma...
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php