Skip to main content

oak_highlight/
lib.rs

1#![feature(new_range_api)]
2#![recursion_limit = "512"]
3#![doc = include_str!("readme.md")]
4#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
5#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
6#![allow(missing_docs)]
7//! Syntax highlighting for the Oak language framework.
8//!
9//! This crate provides a flexible syntax highlighting system with support
10//! for various exporters (HTML, ANSI, JSON, etc.) and themes.
11
12pub mod exporters;
13pub mod highlighter;
14pub mod themes;
15
16pub use crate::{
17    exporters::{AnsiExporter, CssExporter, ExportFormat, Exporter, HtmlExporter, JsonExporter},
18    highlighter::{HighlightResult, HighlightSegment, HighlightStyle, HighlightTheme, Highlighter, OakHighlighter},
19    themes::Theme,
20};