Attach comments smartly

This commit is contained in:
Aleksey Kladov 2018-10-08 17:33:13 +03:00
parent b642e6c645
commit a05e09e9c5
4 changed files with 97 additions and 24 deletions

View file

@ -153,6 +153,22 @@ impl S {
);
}
#[test]
fn test_extend_selection_doc_comments() {
do_check(
r#"
struct A;
/// bla
/// bla
struct B {
<|>
}
"#,
&["\n \n", "{\n \n}", "/// bla\n/// bla\nstruct B {\n \n}"]
)
}
#[test]
fn test_extend_selection_comments() {
do_check(