1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Fix syntect update

This commit is contained in:
Emil Ernerfeldt
2022-07-03 18:48:54 +02:00
parent f2e6003991
commit b278d37df1

View File

@@ -350,7 +350,7 @@ impl Highlighter {
};
for line in LinesWithEndings::from(text) {
for (style, range) in h.highlight_line(line, &self.ps) {
for (style, range) in h.highlight_line(line, &self.ps).ok()? {
let fg = style.foreground;
let text_color = egui::Color32::from_rgb(fg.r, fg.g, fg.b);
let italics = style.font_style.contains(FontStyle::ITALIC);