[TxMt] Nested comments for a Coldfusion language bundle

Allan Odgaard throw-away-1 at macromates.com
Wed Feb 15 05:04:06 UTC 2006


On 15/2/2006, at 5:48, Tim Lucas wrote:

> One question though: how do use the repository item in the main  
> syntax, rather than repeating the pattern def again.

Just do: include = "#«rule_name»"; and it includes the rule in the  
main syntax.

> I've tried various combinations, but could only get this to work:
> [...]

Try this:

	patterns = (
		{ include = '#comment'; },
		...
	);
	repository = {
		comment = {
			name = 'comment.block.html';
			begin = '<!---';
			end = '--->';
			patterns = ( { include = '#comment'; } );
		};
	};




More information about the textmate mailing list