The question originates from my wish to have automatic user defined
types syntax highlighting. So that if I have for example a syntax match
group
UDT for classes and have this in the buffer

1   class mytype {
2   //...
3   };
4
5   mytype a;
6   mytype b;

"mytype" is highlighted on lines 5 and 6 besides 1.
To my knowledge this is not possible in vim unless the source code is
modified.
So the information I was searching was at source code level to complete
implementing this feature.




















2013/12/24 Alexandre Hoïde <[email protected]>

> On Mon, Dec 23, 2013 at 11:38:54PM -0600, tooth pik wrote:
> > On Tue, Dec 24, 2013 at 06:14:27AM +0100, Luca Rocca wrote:
> > > I would like to be able to intercept every syntax match event and
> > > 1) Check to which group it belongs
> > > 2) Get the related string to be highlighted
> > > I'm checking src/syntax.c but no idea for now
> >
> > I'd recommend you visit http://www.vim.org and put 'syntax highlight
> > groups' in the Google Custom Search box -- there are tips on the wiki
> > and plugins and much more.  My guess is you don't really need to modify
> > the source to accomplish your goal.
> >
>
>   Probably to be found where tooth.pik points you to, but have you
> allready checked
>       :help synID()
>       :help synIDattr()
>   ?
>
>   Regards,
> --
>  ___________________
> | $ post_tenebras ↲ |       waouh !
> | GNU        \ /    |      /
> |          -- * --  |     o
> | $ who ↲    / \    |_-- ~_|
> | Alexandre Hoïde   |  _/| |
>  -------------------
>
> --
> --
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to