author | wenzelm |
Tue, 29 Sep 2015 18:39:55 +0200 | |
changeset 61281 | 11c1bf92d61d |
parent 59571 | 1081f91c0662 |
permissions | -rw-r--r-- |
59571 | 1 |
diff -ru 5.2.0/jEdit/org/gjt/sp/jedit/textarea/TextArea.java 5.2.0/jEdit-patched/org/gjt/sp/jedit/textarea/TextArea.java |
2 |
--- 5.2.0/jEdit/org/gjt/sp/jedit/textarea/TextArea.java 2015-02-02 02:14:27.000000000 +0100 |
|
3 |
+++ 5.2.0/jEdit-patched/org/gjt/sp/jedit/textarea/TextArea.java 2015-02-28 20:55:21.140097595 +0100 |
|
4 |
@@ -1613,8 +1618,8 @@ |
|
53931
239f8f451976
support more brackets (see also 427724cff970, 7bf637b65ba2);
wenzelm
parents:
53898
diff
changeset
|
5 |
} |
239f8f451976
support more brackets (see also 427724cff970, 7bf637b65ba2);
wenzelm
parents:
53898
diff
changeset
|
6 |
|
239f8f451976
support more brackets (see also 427724cff970, 7bf637b65ba2);
wenzelm
parents:
53898
diff
changeset
|
7 |
// Scan backwards, trying to find a bracket |
239f8f451976
support more brackets (see also 427724cff970, 7bf637b65ba2);
wenzelm
parents:
53898
diff
changeset
|
8 |
- String openBrackets = "([{"; |
239f8f451976
support more brackets (see also 427724cff970, 7bf637b65ba2);
wenzelm
parents:
53898
diff
changeset
|
9 |
- String closeBrackets = ")]}"; |
239f8f451976
support more brackets (see also 427724cff970, 7bf637b65ba2);
wenzelm
parents:
53898
diff
changeset
|
10 |
+ String openBrackets = "([{«‹⟨⌈⌊⦇⟦⦃"; |
239f8f451976
support more brackets (see also 427724cff970, 7bf637b65ba2);
wenzelm
parents:
53898
diff
changeset
|
11 |
+ String closeBrackets = ")]}»›⟩⌉⌋⦈⟧⦄'"; |
239f8f451976
support more brackets (see also 427724cff970, 7bf637b65ba2);
wenzelm
parents:
53898
diff
changeset
|
12 |
int count = 1; |
239f8f451976
support more brackets (see also 427724cff970, 7bf637b65ba2);
wenzelm
parents:
53898
diff
changeset
|
13 |
char openBracket = '\0'; |
239f8f451976
support more brackets (see also 427724cff970, 7bf637b65ba2);
wenzelm
parents:
53898
diff
changeset
|
14 |
char closeBracket = '\0'; |
59571 | 15 |
diff -ru 5.2.0/jEdit/org/gjt/sp/jedit/TextUtilities.java 5.2.0/jEdit-patched/org/gjt/sp/jedit/TextUtilities.java |
16 |
--- 5.2.0/jEdit/org/gjt/sp/jedit/TextUtilities.java 2015-02-02 02:14:26.000000000 +0100 |
|
17 |
+++ 5.2.0/jEdit-patched/org/gjt/sp/jedit/TextUtilities.java 2015-02-28 20:53:50.167805688 +0100 |
|
53181 | 18 |
@@ -97,6 +97,22 @@ |
53133 | 19 |
case '}': if (direction != null) direction[0] = false; return '{'; |
20 |
case '<': if (direction != null) direction[0] = true; return '>'; |
|
21 |
case '>': if (direction != null) direction[0] = false; return '<'; |
|
22 |
+ case '«': if (direction != null) direction[0] = true; return '»'; |
|
23 |
+ case '»': if (direction != null) direction[0] = false; return '«'; |
|
24 |
+ case '‹': if (direction != null) direction[0] = true; return '›'; |
|
25 |
+ case '›': if (direction != null) direction[0] = false; return '‹'; |
|
53181 | 26 |
+ case '⟨': if (direction != null) direction[0] = true; return '⟩'; |
27 |
+ case '⟩': if (direction != null) direction[0] = false; return '⟨'; |
|
28 |
+ case '⌈': if (direction != null) direction[0] = true; return '⌉'; |
|
29 |
+ case '⌉': if (direction != null) direction[0] = false; return '⌈'; |
|
30 |
+ case '⌊': if (direction != null) direction[0] = true; return '⌋'; |
|
31 |
+ case '⌋': if (direction != null) direction[0] = false; return '⌊'; |
|
32 |
+ case '⦇': if (direction != null) direction[0] = true; return '⦈'; |
|
33 |
+ case '⦈': if (direction != null) direction[0] = false; return '⦇'; |
|
34 |
+ case '⟦': if (direction != null) direction[0] = true; return '⟧'; |
|
35 |
+ case '⟧': if (direction != null) direction[0] = false; return '⟦'; |
|
36 |
+ case '⦃': if (direction != null) direction[0] = true; return '⦄'; |
|
37 |
+ case '⦄': if (direction != null) direction[0] = false; return '⦃'; |
|
53133 | 38 |
default: return '\0'; |
39 |
} |
|
40 |
} //}}} |