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
types syntax highlighting. So that if I have for example a syntax match group
UDT for classes and have this in the buffer
2 //...
3 };
4
"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.
implementing this feature.
2013/12/24 Alexandre Hoïde <alexandre.hoide@gmail.com>
On Mon, Dec 23, 2013 at 11:38:54PM -0600, tooth pik wrote:Probably to be found where tooth.pik points you to, but have you
> 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.
>
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 vim_use+unsubscribe@googlegroups.com.
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment