mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Fix syntect update
This commit is contained in:
@@ -350,7 +350,7 @@ impl Highlighter {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for line in LinesWithEndings::from(text) {
|
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 fg = style.foreground;
|
||||||
let text_color = egui::Color32::from_rgb(fg.r, fg.g, fg.b);
|
let text_color = egui::Color32::from_rgb(fg.r, fg.g, fg.b);
|
||||||
let italics = style.font_style.contains(FontStyle::ITALIC);
|
let italics = style.font_style.contains(FontStyle::ITALIC);
|
||||||
|
|||||||
Reference in New Issue
Block a user