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.
Though my C foo is not good;
It looks like the opener character matching the closing character prevents the range from being generated because it matches the opening character.
If the query is "+ foo +" the search starts and stops on the first +.
If what I’m reading is correct, this might be as simple as starting "from + 1" when looking up the next result.
But I’m probably wrong, lol.
https://github.com/textmate/textmate/commit/2dd825515e343a036172859492e25abf...
Thanks,
Graham Heath
On August 25, 2016 at 4:44:32 PM, Matt Neuburg (matt@tidbits.com) wrote:
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?
I tried smartTypingPairs and highlightPairs, but neither of those was it...
Thx (and sorry if this has already been explained and I missed it) - m.