dioxus/packages/autofmt
2022-09-28 17:06:11 -07:00
..
src fix: trailing commas with key 2022-09-28 17:06:11 -07:00
tests fix: trailing commas with key 2022-09-28 17:06:11 -07:00
Cargo.toml Renderers are now packages, not features. (#387) 2022-07-09 15:15:20 -04:00
README.md chore: fixes to autoformat to prevent double rendering of expr line 2022-09-28 16:47:10 -07:00

This crate autofmts blocks of rsx!

This crate formats rsx! by parsing call bodies and pretty-printing them back out.

Todo:

Sorted roughly in order of what's possible

  • Oneline rsx! calls - blocker because this wrecks formatting
  • Nested RSX calls (important) - unnecessary but desirable
  • RSX edits overstepping each other
  • Collapse components and elements under syntax -
  • Don't eat comments in exprs
  • Format regular exprs
  • Fix prettyplease around chaining
  • Don't eat comments in prettyplease

Technique