Skip to content

format examples and programs - #129

Merged
alii merged 1 commit into
masterfrom
fmt-examples
Sep 24, 2026
Merged

alii merged 1 commit into
masterfrom
fmt-examples

Conversation

@alii

@alii alii commented Sep 24, 2026

Copy link
Copy Markdown
Member

examples/ and crates/scarlet/tests/programs/ run through scarlet fmt, as the stdlib was in #128. Nineteen files changed; nothing else did.

Most of it is the two shapes the formatter learned recently: a final list keeps hold of its call, json.Object([ with the pairs under it rather than the [ on a line of its own, and a long chain of operators breaks at every operator.

A test in golden_examples.rs keeps it that way, next to the one #128 added for the stdlib. People read these files to learn how Scarlet is written, so they should look like what the formatter produces.

All seven CI gates pass locally. hawk ran for the host target, and nothing here is gated on a cfg.

@alii
alii merged commit b33f29f into master Sep 24, 2026
4 checks passed
@alii
alii deleted the fmt-examples branch September 24, 2026 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant