On 24-Jan-2011 Gustavo Niemeyer <[email protected]> wrote:
> Greetings,
> 
> I'm trying to sync up a very simple syntax and being unable to
> do so. It feels a bit like a bug, but it's quite possible that I just
> misunderstand how it works.
> 
> I've nailed down the problem to a very simple example:
> 
>    syn sync match fooSync grouphere NONE /^foo\>/
>    syn region fooString start=+"+ end=+"+
>    hi def link fooString String
> 
> Now, put something like this in a file
> 
>    foo = "
>    (50 lines)
>    "
> 
> Opening the file at the bottom doesn't sync up properly.
> 
> Is this a bug, or do I misunderstand how it works?

Have a look at help for:
:syn-sync

You might want to add ":syn sync fromstart" to an file type plugin.

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