[TxMt] [PATCH] checknest.rb screws up if there is more than one opening or closing delimeter on a line

Allan Odgaard throw-away-1 at macromates.com
Sat Mar 17 03:31:33 UTC 2007


On 16. Mar 2007, at 13:47, Robin Houston wrote:

> [...]
> As well as recognising multiple tags per line, I've also left in  
> the debug option (-d) that I
> added to help me investigate the problem. It may be useful in the  
> future.

I have now applied the patch, thanks.

> Note that it still doesn't support tags that span *multiple* lines.  
> Although it's legal in Latex to split an environment opener, e.g.
>
>     \begin
>     {equation}
>
> nobody ever does. Or at least *I* never do, so it's not a problem  
> for me!

I guess if we really wanted, we could convert newlines to spaces,  
that would solve it, right!?!

> (On the other hand, when I'm writing HTML I sometimes split a tag  
> over more than one line, if it has a lot of
> attributes. Perhaps that's part of the reason the HTML bundle  
> doesn't use checknest.rb for its "Insert Close Tag" command?)

I actually forgot about checknest.rb when I did the close tag  
command, so the feasibility was never really evaluated ;)




More information about the textmate mailing list