[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kate] part/document: remove " matching again, since the search direction always is ambiguous
From: Dominik Haumann <dhdev () gmx ! de>
Date: 2012-07-02 13:33:30
Message-ID: 20120702133330.EBB5BA60CD () git ! kde ! org
[Download RAW message or body]
Git commit 89f9ee4590e8f55368fd290e50f35abaec2efaf6 by Dominik Haumann.
Committed on 02/07/2012 at 15:19.
Pushed by dhaumann into branch 'master'.
remove " matching again, since the search direction always is ambiguous
M +2 -3 part/document/katedocument.cpp
http://commits.kde.org/kate/89f9ee4590e8f55368fd290e50f35abaec2efaf6
diff --git a/part/document/katedocument.cpp b/part/document/katedocument.cpp
index 48c867f..564a0da 100644
--- a/part/document/katedocument.cpp
+++ b/part/document/katedocument.cpp
@@ -92,8 +92,8 @@ static int dummy = 0;
class KateTemplateScript;
-inline bool isStartBracket( const QChar& c ) { return c == '{' || c == '[' || c == '(' || c == '"'; }
-inline bool isEndBracket ( const QChar& c ) { return c == '}' || c == ']' || c == ')' || c == '"'; }
+inline bool isStartBracket( const QChar& c ) { return c == '{' || c == '[' || c == '('; }
+inline bool isEndBracket ( const QChar& c ) { return c == '}' || c == ']' || c == ')'; }
inline bool isBracket ( const QChar& c ) { return isStartBracket( c ) || isEndBracket( c ); }
class KateDocument::LoadSaveFilterCheckPlugins
@@ -3709,7 +3709,6 @@ bool KateDocument::findMatchingBracket( KTextEditor::Range& range, int maxLines
case ']': opposite = '['; break;
case '(': opposite = ')'; break;
case ')': opposite = '('; break;
- case '"': opposite = '"'; break;
default: return false;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic