diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/syntax.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/syntax.rs index 2e9c3444..bee60311 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/syntax.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/syntax.rs @@ -40,6 +40,10 @@ impl Syntax { if let Some(reference) = self.syntax_set.find_syntax_by_token(value) { return self.syntect_buffer(source_code, source_tag, reference); } + + if let Some(reference) = self.syntax_set.find_syntax_by_path(value) { + return self.syntect_buffer(source_code, source_tag, reference); + } } if let Some(reference) = self.syntax_set.find_syntax_by_first_line(source_code) {