Skip to main content

syntect/parsing/
mod.rs

1//! Everything about parsing text into text annotated with scopes.
2//!
3//! The most important struct here is [`SyntaxSet`], check out the docs for that.
4//!
5//! [`SyntaxSet`]: struct.SyntaxSet.html
6
7#[cfg(feature = "metadata")]
8pub mod metadata;
9#[cfg(feature = "parsing")]
10mod parser;
11#[cfg(feature = "parsing")]
12pub mod syntax_definition;
13#[cfg(feature = "parsing")]
14mod syntax_set;
15#[cfg(feature = "syntax-timing")]
16pub mod syntax_timing;
17#[cfg(all(feature = "parsing", feature = "yaml-load"))]
18mod yaml_load;
19
20#[cfg(any(feature = "parsing", feature = "yaml-load", feature = "metadata"))]
21mod regex;
22mod scope;
23
24#[cfg(feature = "metadata")]
25pub use self::metadata::*;
26#[cfg(feature = "parsing")]
27pub use self::parser::*;
28#[cfg(feature = "parsing")]
29pub use self::syntax_definition::SyntaxDefinition;
30#[cfg(feature = "parsing")]
31pub use self::syntax_set::*;
32#[cfg(all(feature = "parsing", feature = "yaml-load"))]
33pub use self::yaml_load::*;
34
35#[cfg(any(feature = "parsing", feature = "yaml-load", feature = "metadata"))]
36pub use self::regex::*;
37
38pub use self::scope::*;