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 16594b7e..7a3205ee 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 @@ -33,6 +33,9 @@ pub struct Syntax { } impl Syntax { + // Constructors + + /// Create new `Self` pub fn new() -> Self { Self { syntax_set: SyntaxSet::load_defaults_newlines(), @@ -40,6 +43,10 @@ impl Syntax { } } + // Actions + + /// Apply `Syntect` highlight to new buffer returned, + /// according to given `alt` and `source_code` content pub fn highlight( &self, source_code: &str,