[TxMt] setting more-than-one name to a language pattern

Allan Odgaard throw-away-1 at macromates.com
Tue Mar 7 09:47:14 UTC 2006


On 7/3/2006, at 7:03, Quinn Comendant wrote:

> How to give more than one scope name to a pattern? I don't want to
> include ALL the matches for keyword.control.php in my symbol list.

You can name captures [1], so you want to capture the case part, and  
likely the label part, and assign an (additional) name to that.

[1] http://macromates.com/textmate/manual/language_grammars#rule_keys



More information about the textmate mailing list