(...)
> then just the ' " ' is highlighted as String, which is expected (see :help
> syn-sync-minlines).

No, it's not expected.  Let's read the help together:

"""
If the "minlines={N}" argument is given, the parsing always starts at least
that many lines backwards.  This can be used if the parsing may take a few
lines before it's correct, or when it's not possible to use syncing.
"""

There's no use in this case.  You can set it to 0, and it should work.

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

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