feat: more advanced comment handling
This commit is contained in:
1 parent
3a30b36f68
commit
150d824561
4 files changed
+94
-55
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user