Community
Participate
Working Groups
Several reports about unexpected bracket matching, block selection, etc. when close or between neighboring brackets. There should be a preference page that allows users to specify the precedence between different brackets "([{" and which bracket wins in case of neighboring similar brackets.
*** Bug 5359 has been marked as a duplicate of this bug. ***
*** Bug 6085 has been marked as a duplicate of this bug. ***
*** Bug 6145 has been marked as a duplicate of this bug. ***
*** Bug 6764 has been marked as a duplicate of this bug. ***
What is this bug about? The description talks about bracket matching, but the title about double clicking. Assuming this bug is indeed about bracket matching and not double clicking, here's a copy of my comment to bug 5359: Emacs solves this problem by matching the bracket that your cursor is to the right of. So in the following example (with | denoting the cursor)... ({[]}|) ... the curly braces will get highlighted. This is a solution that I find works well (without having to specify any precedence).
a curly braket is { yes? but what does it do with this: (|{[]}) then it should select {[]} i can't really understand what the problem really is also because it should select where it is in. so the nearest opening on the right or the nearest closing on the left.
*** Bug 9503 has been marked as a duplicate of this bug. ***
*** Bug 121013 has been marked as a duplicate of this bug. ***
*** Bug 345918 has been marked as a duplicate of this bug. ***
CQ:WIND00276139 I'm not sure why my bug 345918 got duplicated to this one ... since this one talks about picking what brackets to match, whereas my requests were about improving the visibility of the bracket highlighter (and keep match identification as today). I've put a description of expected behavior on bug 345918 - the nice little free tool "Notepad++" shows how this ought to be done in an intuitive way. Here's my minimal expectation: * When any single bracket is _selected_, it's clear what's supposed to be the matching bracket. It should be highlighted. (Today we only highlight based on caret position). * The bracket highlighting should be better visible - eg allow choosing a color for the highlighted bracket * Highlight both opening and closing bracket, to make clear what's the pair. This is important when caret becomes invisible due to competing highlighters, eg CDT symbol highlighter.
> I'm not sure why my bug 345918 got duplicated to this one ... since this one > talks about picking what brackets to match You ask for just another preference/way of doing/showing the brackets. This bug here covers that.
We don't plan to do this but instead fix bug 9503.