On Monday, December 3, 2012 5:07:58 PM UTC-6, Alex Efros wrote:
> Hi!
> 
> 
> 
> On Mon, Dec 03, 2012 at 05:53:58PM -0500, Benjamin R. Haskell wrote:
> 
> > Probably, as it suggests there, you could just use \zs instead:
> 
> > 
> 
> > \\\n\\\n\zsU
> 
> 
> 
> You right, but \zs doesn't work for me. I'm writing syntax highlight rules
> 
> for mkfile (OS Inferno/Plan9 variant of Makefile). It allow any amount of \
> 
> at EOL, so these are the same:
> 
> 
> 
> VAR=U=value
> 
> 
> 
> VAR\
> 
> \
> 
> =\
> 
> \
> 
> U\
> 
> \
> 
> =\
> 
> \
> 
>     value
> 
> 
> 
> So, I'm trying to match "U" between "=" with any amount of \\\n between them:
> 
> 

Maybe just match the \\\n sequences as a separate syntax item and use nextgroup 
to enforce ordering. It should work (probably even a little bit faster) and 
also simplify your pattern.

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui