> Motivation:
> 
> http://stackoverflow.com/questions/13640538/vim-syntax-files-add-to-cterm
> 
> Example:
> 
>     syntax region Italic start='_' end='_' modifier contains=Bold
>     syntax region Bold start='\*' end='\*' modifier contains=Italic
> 
>     highlight Italic cterm=italic
>     highlight Bold cterm=bold
> 
>     _this is both italic *and bold*_
> 
> The code is surprisingly simple, as vim already has a stack of syntax
> matches which it walks up to determine the attributes. It's trivial to
> add a flag which merges attributes instead of clobbering them.
> 
> I'm not sure how to add tests that test text color and format.

Hmm, I think "combine" would express better what this is doing:
combining the existing attributes with those in the current
syntax/highlight item.  One can also combine a fg and bg color, but a
new fg color would overrule an existing fg color (we don't mix colors).

We don't need the patch for += and -= then, right?


-- 
I AM THANKFUL...
...for the piles of laundry and ironing because it means I
have plenty of clothes to wear.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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