aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-31 13:36:51 +0100
committerGitHub <[email protected]>2020-03-31 13:36:51 +0100
commita932ccd53da3d2179e5e36ae4fbcbf82f3e0bd25 (patch)
tree1226bd968c77e233414fa658911bd10d9239bb77 /crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rs
parent668980d8657bd358b83f74e2f54f5e228f7393ed (diff)
parent77f89a700b452cac8ca03de32598066fca32ce34 (diff)
Merge #3785
3785: Attach doc-comment to declaration if there are newlines in between r=matklad a=ltentrup 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. Implements the changes proposed in #3757 Co-authored-by: Leander Tentrup <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rs')
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rs3
1 files changed, 3 insertions, 0 deletions
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 @@
1/// Example
2
3fn test() {}