Skip to main content

ultron_syntaxes_themes/
lib.rs

1#![deny(warnings)]
2use once_cell::sync::Lazy;
3use syntect::dumps;
4pub use syntect::{
5    easy::HighlightLines,
6    highlighting::{Color, Style, Theme, ThemeSet},
7    parsing::{SyntaxReference, SyntaxSet},
8};
9pub use text_highlighter::TextHighlighter;
10
11mod text_highlighter;
12
13pub static SYNTAX_SET: Lazy<SyntaxSet> =
14    Lazy::new(|| dumps::from_binary(include_bytes!("../dump/syntaxes.packdump")));
15
16pub static THEME_SET: Lazy<ThemeSet> =
17    Lazy::new(|| dumps::from_binary(include_bytes!("../dump/themes.themedump")));