equal
deleted
inserted
replaced
80 + case '⦉': if (direction != null) direction[0] = true; return '⦊'; |
80 + case '⦉': if (direction != null) direction[0] = true; return '⦊'; |
81 + case '⦊': if (direction != null) direction[0] = false; return '⦉'; |
81 + case '⦊': if (direction != null) direction[0] = false; return '⦉'; |
82 default: return '\0'; |
82 default: return '\0'; |
83 } |
83 } |
84 } //}}} |
84 } //}}} |
85 diff -ru jedit5.7.0/jEdit/org/gjt/sp/util/SyntaxUtilities.java jedit5.7.0-patched/jEdit/org/gjt/sp/util/SyntaxUtilities.java |
|
86 --- jedit5.7.0/jEdit/org/gjt/sp/util/SyntaxUtilities.java 2024-08-03 19:53:21.000000000 +0200 |
|
87 +++ jedit5.7.0-patched/jEdit/org/gjt/sp/util/SyntaxUtilities.java 2024-10-29 11:50:54.066016546 +0100 |
|
88 @@ -357,8 +357,28 @@ |
|
89 } |
|
90 } |
|
91 |
|
92 - return styles; |
|
93 + styles[0] = |
|
94 + new SyntaxStyle(org.gjt.sp.jedit.jEdit.getColorProperty("view.fgColor", Color.BLACK), |
|
95 + null, new Font(family, 0, size)); |
|
96 + return _styleExtender.extendStyles(styles); |
|
97 } //}}} |
|
98 |
|
99 + /** |
|
100 + * Extended styles derived from the user-specified style array. |
|
101 + */ |
|
102 + |
|
103 + public static class StyleExtender |
|
104 + { |
|
105 + public SyntaxStyle[] extendStyles(SyntaxStyle[] styles) |
|
106 + { |
|
107 + return styles; |
|
108 + } |
|
109 + } |
|
110 + volatile private static StyleExtender _styleExtender = new StyleExtender(); |
|
111 + public static void setStyleExtender(StyleExtender ext) |
|
112 + { |
|
113 + _styleExtender = ext; |
|
114 + } |
|
115 + |
|
116 private SyntaxUtilities(){} |
|
117 } |
|