At the end, yes. When you're at the beginning, it favors what's on the right. Either way, you have to be one character away from a nested bracket in order for the surrounding pair to be highlighted.
Oh, I definitely like consistent and predictable! Ask my wife. Hah hah. Not saying your way is wrong, just that I'd prefer something slightly different. I applaud you for wanting a consistent user experience!
Shoot. That's what I get for not looking at the code and just jumping to an assumption. That's one Shame-On-You for Phillip!
Thanks for the pointers. That will save a bit of head scratching.
Thanks for the detailed response. I might tinker with it this weekend and see what happens. If I get it working the way I want, I'll submit a pull request. Otherwise an issue