|
[Bug 81005] [PATCH] Corresponding parenthesis does not get colorized: msg#00247kde.devel.kwrite
------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=81005 anders alweb dk changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From anders alweb dk 2004-09-28 09:33 ------- CVS commit by alund: Patch from Jesse to improve the bracket matching alegoritm, attachec to #81005 Backport follows CCMAIL: 81005-done bugs kde org, "Jesse R. Yurkovich" <yurkjes iit edu> M +5 -5 katedocument.cpp 1.754 --- kdelibs/kate/part/katedocument.cpp #1.753:1.754 @ -4286,7 +4286,7 @ inline bool isBracket ( const QChar& Bracket matching uses the following algorithm: If in overwrite mode, match the bracket currently underneath the cursor. - Otherwise, if the character to the left of the cursor is an ending bracket, - match it. Otherwise if the character to the right of the cursor is a - starting bracket, match it. Otherwise, if the the character to the left + Otherwise, if the character to the right of the cursor is an starting bracket, + match it. Otherwise if the character to the left of the cursor is a + ending bracket, match it. Otherwise, if the the character to the left of the cursor is an starting bracket, match it. Otherwise, if the character to the right of the cursor is an ending bracket, match it. Otherwise, don't @ -4321,9 +4321,9 @ bool KateDocument::findMatchingBracket( return false; } + } else if ( isStartBracket( right ) ) { + bracket = right; } else if ( isEndBracket( left ) ) { start.setCol(start.col() - 1); bracket = left; - } else if ( isStartBracket( right ) ) { - bracket = right; } else if ( isBracket( left ) ) { start.setCol(start.col() - 1); |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [Bug 87617] kio file gives confusing error message when opened file is deleted on disc: 00247, Anders Lund |
|---|---|
| Next by Date: | [Bug 81005] [PATCH] Corresponding parenthesis does not get colorized: 00247, Anders Lund |
| Previous by Thread: | [Bug 87617] kio file gives confusing error message when opened file is deleted on disci: 00247, Anders Lund |
| Next by Thread: | [Bug 81005] [PATCH] Corresponding parenthesis does not get colorized: 00247, Anders Lund |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |