On Fri, Sep 01, 2006 at 09:36:55AM +0300, Ilya wrote:
> David Brown wrote:
> >However, tex.vim frequently will enclose large sections of the document
> >within a region and the cweb.vim which the webCRegion is not part of.
> >
> >I think I can fix this by adding an appropriate containedin=... field to
> >the definition of webCRegion.
> >
> >What I'm having difficulty with is figuring out what to put there.  Is
> >there a way of finding out what region a given part of the buffer is in?
> From :help synID
>        Example (echoes the name of the syntax item under the cursor): >
>            :echo synIDattr(synID(line("."), col("."), 1), "name")

     IIUC, synIDattr() always returns a syn-match or syn-keyword group.
It does not tell you whether you are in a syn-region.

HTH                                     --Benji Fisher

Reply via email to