On Jan 9, 4:50 am, Fernando Basso <[email protected]> wrote:
> I couldn't find an example in :help syn-concealends about how to use
> it. And I have tried like this:
>
>     highlight sExamplesInText cterm=bold gui=bold
>     syntax match sExamplesInText /«\zs[^»]\_.\{-}\ze»/ concealends
>
> It didn't work, though.

Yeah, concealends is for the syntax region construct, not for the
syntax match construct. I admit I didn't look carefully at the
implementation, just the description of what you want. Now that I'm
looking, I'm not sure why it didn't work as you had it. I'd try
something like this to debug what is actually matching at each
location:

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

That said, in this case, a syn-region will probably do what you want,
and do it easier. But maybe not. Your current pattern will match:

text preceded by «
...with one character which is not »
...followed by any characters at all (including newline), as few as
possible
...until it sees a » as the next character

In other words, it will match things like:

«abc»

«a
bc»

«a
»

but not:

«»

«
»

«
bc»

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