1#![allow(non_local_definitions)]
8#![warn(missing_docs)]
9#![warn(clippy::unwrap_used)]
10#![warn(rustdoc::missing_crate_level_docs)]
11#![warn(rustdoc::broken_intra_doc_links)]
12#![warn(rustdoc::bare_urls)]
13#![deny(unsafe_code)]
14
15extern crate serde as microserde;
18
19mod blob;
20mod error;
21mod grammar;
22mod raw;
23mod registry;
24mod theme;
25mod util;
26
27pub mod json;
28
29pub use blob::{BlobHighlighter, LineBuffer, LineTokens, OwnedLineTokens, StyledLine};
30pub use error::Error;
31pub use grammar::{Grammar, GrammarKind, LineState, LineTokenizer, ScopeId, ScopeSpan};
32pub use raw::{RawCapture, RawGrammar, RawPattern, RawStyle, RawTheme, RawThemeRule};
33pub use registry::{GrammarQuery, Registry};
34pub use theme::{FontStyle, Rgb, Style, StyleSpan, Theme};
35
36pub const MAX_INCLUDE_DEPTH: usize = 8;
38
39#[cfg(test)]
40#[allow(clippy::unwrap_used)]
41mod tests;