Simplify some config serialization stuff

This commit is contained in:
Lukas Wirth 2024-06-09 12:16:30 +02:00
parent e972dd2385
commit 1dcb11be5d
5 changed files with 108 additions and 108 deletions

View file

@ -28,7 +28,7 @@ pub(super) fn highlight_escape_string<T: IsString>(
pub(super) fn highlight_escape_char(stack: &mut Highlights, char: &Char, start: TextSize) {
if char.value().is_err() {
// We do not emit invalid escapes highlighting here. The lexer would likely be in a bad
// state and this token contains junks, since `'` is not a reliable delimiter (consider
// state and this token contains junk, since `'` is not a reliable delimiter (consider
// lifetimes). Nonetheless, parser errors should already be emitted.
return;
}