[TxMt] Matching multiple lines. Possible?

Charilaos Skiadas skiadas at math.uchicago.edu
Fri Jun 17 00:24:12 UTC 2005


On Jun 16, 2005, at 7:05 PM, Allan Odgaard wrote:

> On Jun 17, 2005, at 1:49, Charilaos Skiadas wrote:
>
>
>> Is it possible to match multiple lines in a single match? For  
>> instance, to match:
>>
>
> Currently not, no.
>
> The main reason is that if I did allow multi-line matches, changing  
> one line could cause lines above the changed line to change --  
> basically meaning that each change in the document would require re- 
> parsing from the start of the document.

That makes sense. Is it then possible to specify exactly what would  
be allowed within a begin-end patterns? I am thinking of matching the  
first line in the begin block, and === line in the end block, and  
ideally would like to say: Nothing is allowed between.

Haris





More information about the textmate mailing list