Adjust benchmark_syntax_highlighting_parser for changes

This commit is contained in:
Lukas Wirth 2024-03-17 11:27:39 +01:00
parent 77607ab99a
commit 20d521db74
2 changed files with 86 additions and 1 deletions

View file

@ -1219,7 +1219,9 @@ fn benchmark_syntax_highlighting_parser() {
.highlight(HL_CONFIG, file_id)
.unwrap()
.iter()
.filter(|it| it.highlight.tag == HlTag::Symbol(SymbolKind::Function))
.filter(|it| {
matches!(it.highlight.tag, HlTag::Symbol(SymbolKind::Function | SymbolKind::Method))
})
.count()
};
assert_eq!(hash, 1169);