Gustavo Niemeyer wrote:
Perhaps the following will be of interest:
Sorry, but I don't understand what you mean. You've provided exactly
the same syntax logic I did, but reordered, and your version continues
to expose the same bug.
I see no bug. I've tried it with -u NONE -N, sourced the syntax file,
and the "..." are all highlighted as String. That's with the cursor at
the top of the file. If one repeats this with the cursor at the bottom
of the file, then just the ' " ' is highlighted as String, which is
expected (see :help syn-sync-minlines).
I re-ordered it because, in my experimentation, I gave it "fooString"
instead of NONE, and the highlighting syntax needed to be defined before
the sync.
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.
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