(1) Very simply patch: One thing to consider is the enforcement that the cursor must be to the *right* of the bracket for it to be matched. While this is the only way to resolve ambiguity in the case where there is a bracket on either side of the cursor, what if there is a bracket on only the right side of the cursor? Then this enforcement becomes a bit annoying, does it not? Path: In TextUtilities.java's findMatchingBracket() method, replace
return -1;
with
return findMatchingBracket(buffer,line,offset+1);
inside the "if(cprime == '\0')" condition.
(2) Another very simple patch, no explanation necessary. Just add < and > to the list of {([ and })] in TextUtilities.java. Problem solved.
Alan Ezust
None
None
Public
|
Date: 2008-09-11 18:25:45 PDT I actually don't use the built in action, since I use the XML plugin all |
|
Date: 2008-04-20 17:17:29 PDT
|
|
Date: 2008-02-25 12:38:24 PST
|
|
Date: 2008-02-24 21:26:32 PST
|
| Filename | Description | Download |
|---|---|---|
| bracket_matching.patch | svn diff for the changes described above | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2008-09-11 18:25:45 PDT | ezust |
| resolution_id | None | 2008-09-11 18:25:45 PDT | ezust |
| close_date | - | 2008-09-11 18:25:45 PDT | ezust |
| File Added | 267959: bracket_matching.patch | 2008-02-25 12:38:24 PST | encorejane |
| assigned_to | nobody | 2008-02-24 21:26:33 PST | ezust |