[TxMt] HTML enclosing typing pairs

Jacobo Tarragón Cros jacobo.tarragon at gmail.com
Fri Jan 30 15:32:00 UTC 2015


Hi,

I've noticed that selecting enclosing typing pairs is broken for HTML when
an open tag spans several lines. ie:

<div>*
    <p id="paragraph"
       class="content">
    </p>
</div>


If you place the caret at * and select the enclosing typing pairs, the
selection closes at </p> rather than </div>. It doesn't happen however for
self closing tags:

<div>
    <input id="field"
           class="form-field"/>
</div>


I've looked into the HTML bundle but I'm not sure the typing pairs
references there are the culprit for this.

Could someone point me in the right direction to fix this issue? I'd be
glad to open a PR once I get it working.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20150130/d4f0c7d0/attachment.html>


More information about the textmate mailing list