Tuesday, September 7, 2010

Re: \zs in regex not working with ":syn match ..."

On Sep 3, 4:51 am, Jürgen Krämer <jottka...@googlemail.com> wrote:
>
> there is a note in :help syntax.txt at line 3567 (Vim 7.3.3):
>
>   - The start of a match cannot be in a line other than where the pattern
>     matched.  This doesn't work: "a\nb"ms=e.  You can make the highlighting
>     start in another line, this does work: "a\nb"hs=e.
>
> This seems to talk about the ms-flag, but it might be relevant to your
> case, too.
>

I think I've used \@= and \@<= before to match previous lines to the
start of the match. Maybe these will work for you as well?

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

No comments: