On Jan 10, 8:09 am, Charles Campbell <[email protected]>
wrote:
>
> A rule of syntax highlighting: the syntax highlighting engine doesn't
> look back.  Applied to this case, the Conceal group has, due to
> sequencing priority, "eaten" the character.  Trying this with the
> Conceal group absent shows what the \zs does visually: the is not
> highlighted, but the subsequent text is.
>

Ah, I thought I'd used \zs to allow the syntax engine to match in this
way, for folding "else" statements in VimL. Turns out, I used offsets
instead to allow creating a fold which ends at "else" but also one
which begins at the same spot, by setting the offsets with
ms=s-1,me=s-1 (placing the beginning and end of the match on the
previous line so that another match can happen).

http://vim.wikia.com/wiki/Syntax_folding_of_Vim_scripts

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

Reply via email to