mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Better handling of block doc comments
This commit is contained in:
parent
0fbfab3b45
commit
ec824a92d0
8 changed files with 158 additions and 81 deletions
|
@ -3423,6 +3423,40 @@ mod Foo$0 {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn hover_doc_block_style_indentend() {
|
||||
check(
|
||||
r#"
|
||||
/**
|
||||
foo
|
||||
```rust
|
||||
let x = 3;
|
||||
```
|
||||
*/
|
||||
fn foo$0() {}
|
||||
"#,
|
||||
expect![[r#"
|
||||
*foo*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
fn foo()
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
foo
|
||||
|
||||
```rust
|
||||
let x = 3;
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn hover_comments_dont_highlight_parent() {
|
||||
check_hover_no_result(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue