--- Nikolai Weibull <[EMAIL PROTECTED]> wrote: > I figured that it was easier to add items to a cluster using > containedin= for a syntax definition I'm writing, but it seems that > one can't do it that way. Is there a reason for this, or is it an > oversight? Can we add this to the todo? I've never needed it before, > but for this particular grammar, it made a lot of sense.
I think you're maybe a little confused. Using 'syn keyword SomeKeyword foo [EMAIL PROTECTED]' does not add SomeKeyword to the cluster @SomeCluster, rather, it allows SomeKeyword be contained in all the items in @SomeCluster. It's a little confusing because the syntax is 'syn cluster SomeCluster contains=...', but that's different from when a region or a match contains= something. In the case of a region or match, contains= means 'allow something to be matched inside of this syntax item', but in the case of a cluster, contains= means 'add these items to the cluster's array of syntax items'. Hope that explains everything for you. regards, Peter ____________________________________________________ Do you Yahoo!? Upgrade to Internet Explorer 7, optimised for Yahoo!7 http://au.rd.yahoo.com/evt=44716/*http://au.downloads.yahoo.com/internetexplorer/index.php