mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Adjust benchmark_syntax_highlighting_parser
for changes
This commit is contained in:
parent
77607ab99a
commit
20d521db74
2 changed files with 86 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue