Keeping your code neat
Formatting makes spacing and indentation consistent so code is easier to read. It does not decide whether your game rules are correct.
The formatter normalizes:
- four spaces per block level;
- multiline delimiter continuation indentation;
- spacing around operators, commas, and map colons;
- inline-comment separation;
- trailing whitespace and trailing blank lines;
- one final newline for a non-empty file.
It preserves source locale, identifiers, literal spellings, comments,
command-call versus parenthesized-call style, and the file’s line-ending style.
Formatting is idempotent.
pliro fmt program.pliro
pliro fmt --check program.pliro
pliro fmt --stdout program.pliro
For .bipli, CLI formatting atomically replaces only the embedded entry source
and preserves the manifest, other sources, and assets. --check and --stdout
never write; --check exits unsuccessfully when formatting changes are needed.
Internal blank-line counts are preserved.
