Ignore strings in token trees in syntax highlighting

This commit is contained in:
Lukas Wirth 2023-12-05 17:04:59 +01:00
parent 4525787ed5
commit 9b7ec5e31b
4 changed files with 30 additions and 8 deletions

View file

@ -606,8 +606,8 @@ impl<'db> SemanticsImpl<'db> {
}
Dp::None => true,
};
res = value;
if is_a_match {
res = value;
ControlFlow::Break(())
} else {
ControlFlow::Continue(())