Benji Fisher wrote:
> > Can't you use the "containedin" argument? ":help :syn-containedin"
> Thanks, I did not know about that feature. (This is new in vim
> 6.0, right?) But either I am using it wrong, or it does not work
> correctly. I think this example will clarify another cryptic comment on
> this thread: I try
> :set list listchars=trail:-
> :syn match Space " " containedin=SpecialKey contained
> :hi link Space Error
> (This is for testing. My goal is to use a pattern that matches trailing
> spaces on the current line, and I want to link to Ignore instead of
> Error, so that trailing spaces are not visible as I add them to the
> current line.)
> I think the above commands should make spaces appear as "-"
> characters with Error highlighting. Either I am doing something wrong,
> or vim is, because it does not work.
SpecialKey isn't a syntax group, only a highlight group. There are no
syntax items defined for SpecialKey (well, you could define them, but
none of the existing syntax file have one). You need a syntax group in
which your "Space" item is matched in. ":syntax" lists them all.
hundred-and-one symptoms of being an internet addict:
152. You find yourself falling for someone you've never seen or hardly
know, but, boy can he/she TYPE!!!!!!
/// Bram Moolenaar -- Bram@...
((( Creator of Vim -- http://vim.sf.net
-- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org