ferriki 0.4.1

Reusable native Rust syntax highlighter with TextMate grammars
Documentation
//! Reusable, synchronous Ferriki highlighter for Rust applications.
//!
//! The library has no Node.js or N-API dependency. Asset catalogs are loaded
//! explicitly and cached for reuse across code blocks and documents.

mod asset_catalog;
mod error;
mod highlighter;
mod render;
mod theme_data;
mod tokens;

pub use asset_catalog::StandardAssetCatalogs;
pub use error::{Error, ErrorKind, Result};
pub use ferriki_textmate::{
    RawGrammar, RawTheme, RawThemeSetting, RawThemeStyle, parse_raw_grammar,
};
#[doc(hidden)]
pub use highlighter::HighlighterCore;
pub use highlighter::{HighlightedLines, Highlighter, HighlighterBuilder, LanguageRegistration};
pub use render::{RenderOptions, render_hast, render_html, render_html_lines};
pub use theme_data::{ThemeData, parse_theme_data};
pub use tokens::{
    HighlightThemeMetadata, HighlightThemeToken, HighlightThemeTokenStyle, HighlightToken,
    HighlightTokensResult, HighlightTokensWithThemesResult, TokenizeOptions,
};