[TxMt] How to match recursive blocks when begin goes over two lines

Allan Odgaard throw-away-1 at macromates.com
Fri Sep 15 23:50:42 UTC 2006


On 15/9/2006, at 15:26, Andreas Pardeike wrote:

> [...] So a block starts either as '%keyword_and_more {' or as '% 
> keyword_and_more\n{'
> and always ends in '%}'.
>
> Is it possible to define this? I assume that I need to define two  
> rule sets to
> simulate the two states and then either start in state A or B and  
> do the
> recursion within each set. Right?

Yes, that would be the way to handle this, i.e. split the match,  
which goes over two lines, into a begin/end with a nested begin/end  
for the second line.







More information about the textmate mailing list