* add new autofmt sample * Feat: implement rustfmt::skip support for rsx * generally improve error handling with better expect messages * wip: nested rsx formatting and expression formatting * nested rsx formatting works * collapse autofmt crate * cast indent through macros * use proper whitespace * no more eating comments! * Use proper error handling
47 lines
751 B
R
47 lines
751 B
R
rsx! {
|
|
// Comments
|
|
div {
|
|
// Comments
|
|
class: "asdasd",
|
|
|
|
// Comments
|
|
"hello world"
|
|
|
|
// Comments
|
|
{expr1}
|
|
|
|
// Comments
|
|
{expr2}
|
|
|
|
// Comments
|
|
// Comments
|
|
// Comments
|
|
// Comments
|
|
// Comments
|
|
{expr3}
|
|
|
|
div {
|
|
// todo some work in here
|
|
}
|
|
|
|
div {
|
|
// todo some work in here
|
|
// todo some work in here
|
|
//
|
|
// todo some work in here
|
|
}
|
|
|
|
div {
|
|
// todo some work in here
|
|
class: "hello world",
|
|
|
|
// todo some work in here
|
|
class: "hello world",
|
|
}
|
|
|
|
div {
|
|
div {}
|
|
}
|
|
}
|
|
}
|