Skip to main content

Crate active_fmt

Crate active_fmt 

Source
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§

ParseOptions
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. Preserve uses the style the source predominantly used.
parse_file
Parse a file from the filesystem, resolving include statements against the file’s directory (spec §2.7). Includes are enabled regardless of the passed options’ enable_includes flag; every other option is honored as given.