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

Robin Houston robin.houston at gmail.com
Fri Mar 16 12:47:52 UTC 2007


On 3/16/07, Allan Odgaard <throw-away-1 at macromates.com> wrote:
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070316/0d4c43b2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checknest.patch
Type: application/octet-stream
Size: 1950 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070316/0d4c43b2/attachment.patch>


More information about the textmate mailing list