Skip to main content

oak_jinja/
lib.rs

1#![doc = include_str!("readme.md")]
2#![warn(missing_docs)]
3#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
4#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
5
6/// AST module
7pub mod ast;
8/// Builder module
9pub mod builder;
10mod language;
11mod lexer;
12#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
13/// LSP module
14pub mod lsp;
15/// Parser module
16pub mod parser;
17
18pub use ast::JinjaRoot;
19pub use builder::JinjaBuilder;
20pub use language::JinjaLanguage;
21pub use lexer::{JinjaLexer, token_type::JinjaTokenType};
22pub use parser::{JinjaParser, element_type::JinjaElementType};
23
24/// Highlighter implementation
25#[cfg(feature = "oak-highlight")]
26pub use crate::lsp::highlighter::JinjaHighlighter;
27
28#[cfg(feature = "lsp")]
29pub use crate::lsp::JinjaLanguageService;
30/// LSP implementation
31#[cfg(feature = "lsp")]
32pub use crate::lsp::formatter::JinjaFormatter;