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!
On 30 Jan 2015, at 22:32, Jacobo Tarragón Cros wrote:
I've noticed that selecting enclosing typing pairs is broken for HTML when an open tag spans several lines […] Could someone point me in the right direction to fix this issue?
I’m afraid the limitation is in TextMate.
It uses the highlightPairs for the definition of “enclosing block”, but when regular expressions are used for highlightPairs, it limits matching to a single line.