Editor/display changes
This commit is contained in:
parent
4e42f6ad6b
commit
9c20d58678
@ -91,7 +91,7 @@ public class TextHighlighter implements TextProcessor<TextHighlighter.Result, St
|
|||||||
int maxNumberOfOpenGroupSymbols = 0;
|
int maxNumberOfOpenGroupSymbols = 0;
|
||||||
int numberOfOpenGroupSymbols = 0;
|
int numberOfOpenGroupSymbols = 0;
|
||||||
|
|
||||||
final StringBuilder text1 = new StringBuilder();
|
final StringBuilder text1 = new StringBuilder(5 * text.length());
|
||||||
|
|
||||||
int resultOffset = 0;
|
int resultOffset = 0;
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ public class TextHighlighter implements TextProcessor<TextHighlighter.Result, St
|
|||||||
|
|
||||||
if (maxNumberOfOpenGroupSymbols > 0) {
|
if (maxNumberOfOpenGroupSymbols > 0) {
|
||||||
|
|
||||||
final StringBuilder text2 = new StringBuilder();
|
final StringBuilder text2 = new StringBuilder(text1.length());
|
||||||
|
|
||||||
String s = text1.toString();
|
String s = text1.toString();
|
||||||
int i = processBracketGroup(text2, s, 0, 0, maxNumberOfOpenGroupSymbols);
|
int i = processBracketGroup(text2, s, 0, 0, maxNumberOfOpenGroupSymbols);
|
||||||
|
Loading…
Reference in New Issue
Block a user