Add support for doc on hover for macro 2.0
This commit is contained in:
@@ -1234,6 +1234,37 @@ fn f() { fo$0o!(); }
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hover_macro2_invocation() {
|
||||
check(
|
||||
r#"
|
||||
/// foo bar
|
||||
///
|
||||
/// foo bar baz
|
||||
macro foo() {}
|
||||
|
||||
fn f() { fo$0o!(); }
|
||||
"#,
|
||||
expect![[r#"
|
||||
*foo*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
macro foo
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
foo bar
|
||||
|
||||
foo bar baz
|
||||
"#]],
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hover_tuple_field() {
|
||||
check(
|
||||
|
||||
Reference in New Issue
Block a user