Gustavo Niemeyer 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?

Thanks,

Perhaps the following will be of interest:

syn on
syn clear
syn region fooString start=+"+ end=+"+
syn sync match fooSync grouphere NONE /^foo\>/
hi def link fooString String

Regards,
Chip Campbell

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