Hi frantisek!

On Do, 07 Apr 2016, frantisek holop wrote:

> Bram Moolenaar, 07 Apr 2016 22:16:
> > > good day,
> > > 
> > > please find attached a simple patch to add some C types
> > > used on some BSD systems to the C syntax highlighting file.
> > 
> > BSD specific?  Well, I can include them.  Although some people maybe
> > would prefer to do this conditionally?
> 
> yes, the BSD family does have these:
> http://fxr.watson.org/fxr/source/sys/types.h?v=OPENBSD
> 
> the patch actually comes from OpenBSD's local patch
> for the vim package[0], but i think it would be nice
> to have it in vim proper.
> 
> i think the change is very small and mostly
> non-intrusive.  what condition do you have in mind?
> can it be done easily?

I don't have any saying in that, but I guess what Bram wants is 
something like this:

if exists("c_bsd_types")
    syn keyword     cType       u_int8_t u_int16_t u_int32_t u_int64_t
endif

And then add an entry at runtime/doc/syntax.txt below *ft-c-syntax* and 
document the variable.

Best,
Christian
-- 
Fällt der Bauer auf sein' Stengel, wird's nichts mit dem nächsten Bengel.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui