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

I'm fine with people calling me an arrogant for no reason and crying
about investing their time on me, but first they must provide some
kind of useful information Lech. ;-)

> Here's your answer:

Your answer is incorrect, since you're forcefully defining a highlighting
group to exist in a moment when it doesn't.  Here is the documentation:

        Define a match that is used for syncing.  {group-name} is the
        name of a syntax group that follows just after the match.  Parsing
        of the text for highlighting starts just after the match.

In the provided file, the match group is *not* in effect right after /foo\>/.
It is only in effect after the region starts, so NONE is the appropriate
value there.

If you want to observe the problem in practice, change your example
file to this:

foo = "oops"
asdf
asdf
...
asdf
"

Then observe the highlighting at the top, and at the bottom while your
syntax definition is in effect.

Note that, while explaining that to you, I haven't offended you in any
way, nor am I crying about my time, which in fact is being spent here
to help an open source project to sync their file type syntax properly.

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

Thanks!  I'm also wishing for better luck. :-)

-- 
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/blog
http://niemeyer.net/twitter

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