Skip to content

Add formatter to windows-rdl - #3895

Merged
Rafael Rivera (riverar) merged 8 commits into
masterfrom
rafael/rdl-fmt
Feb 19, 2026
Merged

Add formatter to windows-rdl#3895
Rafael Rivera (riverar) merged 8 commits into
masterfrom
rafael/rdl-fmt

Conversation

@riverar

@riverar Rafael Rivera (riverar) commented Feb 18, 2026

Copy link
Copy Markdown
Collaborator

Adds a custom token-based formatter for Windows RDL using the logos crate, replacing the previous formatters (rustfmt and prettyplease). While those crates are fantastic for standard Rust, they operate on Rust's AST and offer little flexibility for RDL making it difficult to enforce our formatting conventions without fighting the tools. This new formatter gives us full control over spacing, indentation, and layout rules, and provides a foundation for extending formatting behavior as the language rapidly evolves.

@kennykerr

Copy link
Copy Markdown
Collaborator
image

Comment thread crates/libs/rdl/src/formatter/mod.rs Outdated
@riverar
Rafael Rivera (riverar) marked this pull request as ready for review February 19, 2026 01:22

@kennykerr Kenny Kerr (kennykerr) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@riverar
Rafael Rivera (riverar) merged commit 626337f into master Feb 19, 2026
32 checks passed
@riverar
Rafael Rivera (riverar) deleted the rafael/rdl-fmt branch February 19, 2026 04:33
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.

2 participants