mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Add support for doc on hover for macro 2.0
This commit is contained in:
parent
4520002b63
commit
eedadd7024
2 changed files with 33 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue