bram209 / leptosfmt

A formatter for the leptos view! macro
Apache License 2.0
274 stars 30 forks source link

feat: non-doc comments within rsx #4

Closed bram209 closed 1 year ago

bram209 commented 1 year ago

Resolves #3

Note: Currently inserts the doc comments before a node. Inline (at end of a statement) comments are not yet supported (and will end up in the line above).

Note2: This does not preserve comments in code blocks yet, I plan to add this to https://github.com/bram209/prettyplease later.

bram209 commented 1 year ago

Release to crates.io blocked by: https://github.com/stoically/syn-rsx/issues/49

mtsr commented 1 year ago

Works for me!

M1cha commented 1 year ago

Since you moved from syn_rsx to rstml in #32, this probably needs reworking. Do you have that planned?

bram209 commented 1 year ago

Hi, yes this feature can now be implemented, I haven't found the time to do that yet.