[TxMt] matching question

Aparajita Fishman aparajita at aparajitaworld.com
Tue Apr 18 20:28:36 UTC 2006


Hi,

I have the following rule for a block comment:

{ name = 'comment.block.active4d';
   begin = '/\*';
   end = '\*/';
   patterns = ( { include = '#fusedoc'; } );
}

Within a block comment, the fusedoc rule looks for some xml:

fusedoc =
{ begin = '^\s*<fusedoc ';
   end = '^\s*</fusedoc>';
   patterns = ( { include = 'text.xml'; } );
}

The problem is that I want the text.xml language parser to parse the  
line on which '<fusedoc ' is found. However, it seems that it will  
only parse the lines between the begin and end lines.

Is there any way to have the first and last lines of the fusedoc rule  
be parsed by text.xml?

Regards,

    Aparajita
    www.aparajitaworld.com

    "If you dare to fail, you are bound to succeed."
    - Sri Chinmoy   |   www.srichinmoylibrary.com





More information about the textmate mailing list