Hi Yakov,

As far as I can remember, all PHP syntax items begin with 'php', with the
exception of the preg* pattern items (these are only available if you've
downloaded the new PHP syntax from vim.org), and they start with 'preg'.  Sorry
I don't have a copy of Vim installed at this location so I can't check this for
you right now, but I'm pretty every PHP syntax item is contained (directly or
indirectly) inside phpRegion, so you can just examine the 'lower-most' syntax
group and if it begins with 'php' or 'preg', then the cursor is in phpRegion.

regards,
Peter




--- Yakov Lerner <[EMAIL PROTECTED]> wrote:

> Let's say I want to check if we are inside phpRegion
> (<?php...?>).
> 
> I am aware of synID(), synIDattr() and
> synIDtrans() functions, but they only tell the "lower-most"
> syntax group.
> 
> The current point has the whole stack of regions
> and matches above it. right, and what ig I want to check if "pfpRegion"
> appears in smoe place in this stack ?
> 
> Yakov
> 


Send instant messages to your online friends http://au.messenger.yahoo.com 

Reply via email to