Skip to content

Commit

Permalink
Use empty symbol pair match in EmptyLanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosemoe committed Jun 25, 2022
1 parent b0f72c1 commit 954f26f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public CharSequence format(CharSequence text) {

@Override
public SymbolPairMatch getSymbolPairs() {
return new SymbolPairMatch.DefaultSymbolPairs();
return EMPTY_SYMBOL_PAIRS;
}

@Override
Expand Down Expand Up @@ -89,7 +89,7 @@ public boolean useTab() {
return false;
}


public final static SymbolPairMatch EMPTY_SYMBOL_PAIRS = new SymbolPairMatch();

public static class EmptyAnalyzeManager implements AnalyzeManager {

Expand Down

0 comments on commit 954f26f

Please sign in to comment.