[moved from vim_use]
On Wed, 28 Jul 2010, Ben Fritz wrote:
> On Jul 28, 1:50 am, "Christian Brabandt" wrote:
> >
> > Works for me with Vim 7.2.284 on Windows. I don't have access to
> > different systems right now, so I can't test it with different vim
> > versions.
> >
>
> It works fine for me too, using the latest 7.3 build as of tonight on
> Windows XP. Every line between the ==== markers gets highlighted, all
> b's are in TODO, all a's are in Error.
>
> What do you see when you eliminate your .vimrc from the picture with
> vim -N -u NONE? What DOES get highlighted, and with what group?
I generally test things like this with vim -U NONE -u NONE -N.
The problem is that the first 'b' doesn't get highlighted. The text,
with '|' indicating end-of-line is:
a|
b| <-- problem is that this line is not highlighted
a |
b|
a b|
Just to ensure lines ending in spaces aren't being munged in mailing,
here's a new version, which still fails with Vim built from the current
hg tip (7b764999f9b9) compiled with --with-features=huge. Changed to
'Constant' and 'Error' just so the 'b's have a background color.
--
Best,
Ben
==> testfile.vim <==
set all&
syntax on
syntax clear
syntax match A /^a/ nextgroup=B
syntax match B /\_s\+b/ contained
hi link A Constant
hi link B Error
" Thanks Marc -- used your version after all:
call append(line('$')-1,['a','b','a ','b','a b'])
finish
=====
=====
--
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