diff --git a/rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/util/SemanticTokenizer.java b/rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/util/SemanticTokenizer.java index 080d08ed..4e028609 100644 --- a/rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/util/SemanticTokenizer.java +++ b/rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/util/SemanticTokenizer.java @@ -414,15 +414,15 @@ private enum Mode { INNER_OVER_OUTER_LEGACY; // Syntax-in-syntax special case public static Mode toMode(String s) { - switch (s) { - case "outerOverInner": - return Mode.OUTER_OVER_INNER; - case "innerOverOuterStrict": - return Mode.INNER_OVER_OUTER_STRICT; - case "innerOverOuterLegacy": - return Mode.INNER_OVER_OUTER_LEGACY; - default: - throw new IllegalArgumentException("Unexpected token collector mode: " + s); + switch (s) { + case "outerOverInner": + return Mode.OUTER_OVER_INNER; + case "innerOverOuterStrict": + return Mode.INNER_OVER_OUTER_STRICT; + case "innerOverOuterLegacy": + return Mode.INNER_OVER_OUTER_LEGACY; + default: + throw new IllegalArgumentException("Unexpected token collector mode: " + s); } } }