<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">It looks like highlightPairs is what this functionality ties into, but I couldn’t make it work with any pairs that were the same; so ["+","+"] didn’t work but ["+","-"] did.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Though my C foo is not good; </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">It looks like the opener character matching the closing character prevents the range from being generated because it matches the opening character.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">If the query is "+ foo +" the search starts and stops on the first +.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">If what I’m reading is correct, this might be as simple as starting "from + 1" when looking up the next result.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">But I’m probably wrong, lol.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="margin:0px"><a href="https://github.com/textmate/textmate/commit/2dd825515e343a036172859492e25abfc22de3da">https://github.com/textmate/textmate/commit/2dd825515e343a036172859492e25abfc22de3da</a></div><div id="bloop_customfont" style="margin:0px"><br></div> <br> <div id="bloop_sign_1472171672966381056" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">Thanks,</div><div style="font-family:helvetica,arial;font-size:13px"><br>Graham Heath<br><br></div></div> <br><p class="airmail_on">On August 25, 2016 at 4:44:32 PM, Matt Neuburg (<a href="mailto:matt@tidbits.com">matt@tidbits.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>We can double-click a left parenthesis to select everything from there to the corresponding right parenthesis, and vice versa, so this raises the question: how does my bundle opt in to this? For example, in my "language" (AsciiDoc), a plus sign might be a delimiter. Is there a way to set things up so that double-clicking a plus sign selects to the other plus sign?
<br>
<br>I tried smartTypingPairs and highlightPairs, but neither of those was it...
<br>
<br>Thx (and sorry if this has already been explained and I missed it) - m.
<br>
<br>--
<br>matt neuburg, phd = <a href="http://www.apeth.net/matt/">http://www.apeth.net/matt/</a>
<br>pantes anthropoi tou eidenai oregontai phusei
<br>Programming iOS 9! <a href="http://shop.oreilly.com/product/0636920044352.do">http://shop.oreilly.com/product/0636920044352.do</a>
<br>iOS 9 Fundamentals! <a href="http://shop.oreilly.com/product/0636920044345.do">http://shop.oreilly.com/product/0636920044345.do</a>
<br>RubyFrontier! <a href="http://www.apeth.com/RubyFrontierDocs/default.html">http://www.apeth.com/RubyFrontierDocs/default.html</a>
<br>
<br>
<br>_______________________________________________
<br>textmate mailing list
<br><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>
<br><a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a>
<br></div></div></span></blockquote></body></html>