[TxMt] perl bundle: line_comment

Allan Odgaard throw-away-1 at macromates.com
Sat Jul 29 00:52:54 UTC 2006


On 29/7/2006, at 2:46, Michael Reece wrote:

> can you give an example how that would work?  i assume i would  
> modify this block,
>
> {	name = 'source.perl.mason.line';
> begin = '^(%)';
> end = '$';
> beginCaptures = { 1 = { name = 'keyword.control'; }; };
> patterns = ( { include = 'source.perl'; } );
> },

That should be:

     {   name = 'source.perl.mason.line';
         begin = '^(%)';
         end = '$';
         beginCaptures = { 1 = { name = 'keyword.control.mason'; }; };
         patterns = (
             {   name = 'comment.line.number-sign.perl';
                 match = '#.*$';
             };
             {   include = 'source.perl'; }
         );
     },






More information about the textmate mailing list