Expand description
Formatter for the Active configuration and data language.
Parses Active documents and reprints them, which is what canonical layout and
editor format-on-save both need. This library re-exports the formatter entry
point and the parsing pieces the binary itself uses; the implementation
lives in active_core::fmt.
Structs§
- Parse
Options - Options controlling parsing and healing behavior.
Enums§
- Style
- Layout style for output (spec/dual-syntax.md §8).
Functions§
- format
- Format a module in the requested style.
Preserveuses the style the source predominantly used. - parse_
file - Parse a file from the filesystem, resolving
includestatements against the file’s directory (spec §2.7). Includes are enabled regardless of the passed options’enable_includesflag; every other option is honored as given.