diff --git a/editor/src/main/java/io/github/rosemoe/sora/lang/EmptyLanguage.java b/editor/src/main/java/io/github/rosemoe/sora/lang/EmptyLanguage.java index 866479490..0d920b2b8 100644 --- a/editor/src/main/java/io/github/rosemoe/sora/lang/EmptyLanguage.java +++ b/editor/src/main/java/io/github/rosemoe/sora/lang/EmptyLanguage.java @@ -50,7 +50,7 @@ public CharSequence format(CharSequence text) { @Override public SymbolPairMatch getSymbolPairs() { - return new SymbolPairMatch.DefaultSymbolPairs(); + return EMPTY_SYMBOL_PAIRS; } @Override @@ -89,7 +89,7 @@ public boolean useTab() { return false; } - + public final static SymbolPairMatch EMPTY_SYMBOL_PAIRS = new SymbolPairMatch(); public static class EmptyAnalyzeManager implements AnalyzeManager {