Thanks for the patch Robin, unfortunately I get a merge conflict in
the third hunk.
Could you run a diff against http://macromates.com/svn/Bundles/trunk/
Support/bin/checknest.rb and give me that?
Ah, sorry. I was diffing against an old version (1.5.4). Here's the diff against svn.
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.
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! (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?)
Robin