diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-14 10:00:32 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-14 10:02:19 +0100 |
| commit | 4c73456fc1f5df8ebb3a89d9db657c3c54624d66 (patch) | |
| tree | 72a8fa83bb0a797c3e065746a50a74508bb41a3a /tests/src | |
| parent | 2470df05af993e89405c5c86329e08243960641d (diff) | |
Move highlighting into new IDE module
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/benches.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/src/benches.rs b/tests/src/benches.rs index 4cd7d9c3..2c693c7c 100644 --- a/tests/src/benches.rs +++ b/tests/src/benches.rs @@ -22,7 +22,6 @@ main!( bench_eval, bench_typeset, bench_compile, - bench_highlight, bench_render, ); @@ -63,17 +62,6 @@ fn bench_edit(iai: &mut Iai) { iai.run(|| black_box(source.edit(1168..1171, "_Uhr_"))); } -fn bench_highlight(iai: &mut Iai) { - let source = Source::detached(TEXT); - iai.run(|| { - typst::syntax::highlight::highlight_categories( - source.root(), - 0..source.len_bytes(), - &mut |_, _| {}, - ) - }); -} - fn bench_eval(iai: &mut Iai) { let world = BenchWorld::new(); let route = typst::model::Route::default(); |
