Skip to content

Commit

Permalink
Update syntax_highlighting.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Dec 29, 2024
1 parent e2c7e9e commit e28351b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/egui_extras/src/syntax_highlighting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub fn highlight(
// performing it at a separate thread (ctx, ctx.style()) can be used and when ui is available
// (ui.ctx(), ui.style()) can be used

#[allow(non_local_definitions)]
impl egui::cache::ComputerMut<(&egui::FontId, &CodeTheme, &str, &str), LayoutJob> for Highlighter {
fn compute(
&mut self,
Expand Down

0 comments on commit e28351b

Please sign in to comment.