Hi! The following example contains a valid C99 (and C11) compound literal:
post(
letter,
&(struct envelope){
.stamp = {
.value = ONE_CENT,
.pic = RAT
},
.address = &address
}
);
Yet even after setting "let c_no_curly_error = 1", the last closing
parenthesis remains highlighted in red as if it were an error.
However, if I remove the ".stamp = { ... }" struct member, the
highlight disappears, so it seems to me that c_no_curly_error can only
ignore un-nested pairs of braces within any given pair of parentheses.
Can this be fixed and/or is there a workaround? I wouldn't mind
disabling parentheses-related error checking all together, should that
be what it takes.
Thanks,
Will
--
--
You received this message from the "vim_use" 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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Friday, April 26, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment