From 77f89a700b452cac8ca03de32598066fca32ce34 Mon Sep 17 00:00:00 2001 From: Leander Tentrup Date: Tue, 31 Mar 2020 14:19:21 +0200 Subject: Attach doc-comment to declaration if there are newlines in between This commit changes the parser to attach doc-comments to the corresponding declaration in case there are newlines in between the doc-comment and the declaration. --- crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rs (limited to 'crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rs') diff --git a/crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rs b/crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rs new file mode 100644 index 000000000..1fafe216b --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rs @@ -0,0 +1,3 @@ +/// Example + +fn test() {} -- cgit v1.2.3