Friday, January 21, 2011

Help with syn sync grouphere

Greetings,

I'm trying to sync up a 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.

What am I getting wrong there?

Thanks for any help,

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

--
You received this message from the "vim_use" 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

No comments: