substrate_data/forms/text/mod.rs
1//! The text syntax: JSON, plus `//` and `/* */` comments, trailing commas
2//! and unquoted keys (the part of JSON5 editors already understand).
3//!
4//! [`parse`] keeps where every value is ([`Spans`]), so a schema error at
5//! `entries[2].pages[0].item` can point at its line. Typed values stay
6//! strings here — the schema decides what a string means.
7
8mod comments;
9mod doc;
10mod line_col;
11mod parser;
12mod span;
13mod spans;
14mod syntax_error;
15mod writer;
16
17#[cfg(test)]
18mod tests;
19
20pub use comments::with_comments;
21pub use doc::Doc;
22pub use line_col::LineCol;
23pub use parser::{MAX_DEPTH, parse, parse_value};
24pub use span::Span;
25pub use spans::Spans;
26pub use syntax_error::SyntaxError;
27pub(crate) use writer::float_string;
28pub use writer::{to_string, to_string_pretty, write_string};