Syntax highlighting for escape sequences in strings

This commit is contained in:
Leander Tentrup
2020-06-17 15:27:13 +02:00
parent 931f317399
commit 2145e2d878
12 changed files with 38 additions and 5 deletions

View File

@@ -324,6 +324,7 @@ fn semantic_token_type_and_modifiers(
HighlightTag::UnresolvedReference => semantic_tokens::UNRESOLVED_REFERENCE,
HighlightTag::FormatSpecifier => semantic_tokens::FORMAT_SPECIFIER,
HighlightTag::Operator => lsp_types::SemanticTokenType::OPERATOR,
HighlightTag::EscapeSequence => semantic_tokens::ESCAPE_SEQUENCE,
};
for modifier in highlight.modifiers.iter() {