On 26-Jan-2011 Gustavo Niemeyer <[email protected]> wrote:
[...]
> > It also needed to have syntax highlighting turned on, and the syn clear was
> > needed to get a clean start at every sourcing; your example had neither the
> > syntax on nor the syn clear.
> 
> Yes, I assumed I was talking to the developers of vim, which don't
> need explanations about the basics of syntax highlighting.

I must admit that for someone who's just joined the list you seem pretty
arrogant.

First of all you are talking to people who sacrifice their precious time
to help you. And you neither bothered to prepare an easily reproducible
test case, nor to explain clearly what your problem was (have a look
here: http://llorens.visualserver.org/vim.png).

Here's your answer:

#v+
syn region fooString start=+"+ end=+"+
syn sync match fooSync grouphere fooString /^foo\>/
hi def link fooString String
#v-

Good luck with getting further help! You might need it.

-- 
Cheers,
Lech

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