From 954f26f7c71d517e506b59c2c2ea1814d55db70d Mon Sep 17 00:00:00 2001 From: Rosemoe <2073412493@qq.com> Date: Sat, 25 Jun 2022 21:46:00 +0800 Subject: [PATCH] Use empty symbol pair match in EmptyLanguage --- .../main/java/io/github/rosemoe/sora/lang/EmptyLanguage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {