Tuesday, December 24, 2013

Re: Vim source code

On Monday, December 23, 2013 11:14:27 PM UTC-6, riemann wrote:
> > 2013/12/24 Tim Chase <v...@tim.thechases.com>
> > On 2013-12-24 01:25, Luca Rocca wrote:
> >
> > > I'm trying to modify vim source code to add some functionality I
> >
> > > need. Basically I seek help in identifying which data structure in
> >
> > > vim contains some information (say for example the group of a
> >
> > > syntax match event). Is this the right place to ask?
> >
> >
> >
> > It depends.  If you clarify the needs you're trying to address, there
> > might be a way to do it with pure vimscript.
> >
> 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
>

This is not what Tim asked.

WHY do you want this information?

There is no such thing as a "syntax match event" but you can extract syntax
information from the buffer with some vimscript functions. What is your eventual
goal? What are you trying to accomplish by getting syntax information? We can
probably help you with that.

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