Fritzophrenic wrote:

> From :help :syn-cluster:
> 
> "A cluster...may be referred to in a contains=.., nextgroup=.., add=..
> or remove=.. list with a '@' prefix."
> 
> Is there a reason that a cluster may not be referred to in a
> containedin=.. list? That would be very helpful for things in the
> after/syntax directory, so that you could do things like this:
> 
> syn cluster myExcludedGroups
> contains=defaultGroup1,defaultGroup2,defaultGroup3,...,defaultGroupN
> syn keyword myItem1 containedin=ALLBUT,@myExcludedGroups
> syn keyword myItem2 containedin=ALLBUT,@myExcludedGroups
> syn keyword myItem3 containedin=ALLBUT,@myExcludedGroups
> ...
> syn keyword myItemN containedin=ALLBUT,@myExcludedGroups

You can do that.  Haven't verified it, but don't see a reason why it
would not work.

I'll update the documentation to mention containedin.

-- 
Violators can be fined, arrested or jailed for making ugly faces at a dog.
                [real standing law in Oklahoma, United States of America]

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui