Lucas De Marchi wrote:
> The following snippet breaks C syntax highlight for me. I'm using VIM 7.3.495
>
> #define GDBUS_ARGS_INFO(args...) (const GDBusArgInfo[]) { args, { } }
>
>
>
> static const GDBusMethodTable char_methods[] = {
> {
> "GetProperties", "", "a{sv}", get_properties,
> .out_args = GDBUS_ARGS_INFO({ "properties", "a{sv}" })
> },
> { }
> };
>
>
> If i change the "}" inside the string to \7xd, the problem disappears.
> It appears that the problem is related to the open parenthesis and the
> close bracket. If I use anything that do not open a parenthesis, then
> it's back working.
>
> Is there a way to properly fix this in c.vim?
The problem is that when we allow {} inside () then there is no way to
check for a missing ). Therefore this is optional.
You can set the c_no_curly_error variable, see ":help c.vim".
--
Yesterday, all my deadlines seemed so far away
now it looks as though it's freeze in four days
oh I believe in cvs..
[ CVS log "Beatles style" for FreeBSD ports/INDEX, Satoshi Asami ]
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
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