feat: more advanced comment handling

This commit is contained in:
Jonathan Kelley committed 2022-07-05 00:22:06 -04:00
1 parent 3a30b36f68
commit 150d824561
4 files changed
+94 -55

No files matched your search

+10
View File
@@ -20,3 +20,13 @@ fn already_formatted_file_properly() {
println!("{}", out);
}
#[test]
fn comment_case_work() {
let src = include_str!("./samples/comments.rsx");
let formatted = dioxus_autofmt::fmt_file(src);
let out = dioxus_autofmt::apply_formats(src, formatted);
println!("{}", out);
}
@@ -0,0 +1,18 @@
rsx! {
div {
// The title
"hello"
// The title
"hello"
// The title
"hello"
// The title
"hello"
// body
div { "text" }
}
}