mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Search raw identifiers without prefix
This commit is contained in:
parent
2a57b01980
commit
098d9d77b4
3 changed files with 33 additions and 10 deletions
|
@ -2016,4 +2016,19 @@ fn method$0() {}
|
|||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn raw_identifier() {
|
||||
check(
|
||||
r#"
|
||||
fn r#fn$0() {}
|
||||
fn main() { r#fn(); }
|
||||
"#,
|
||||
expect![[r#"
|
||||
r#fn Function FileId(0) 0..12 3..7
|
||||
|
||||
FileId(0) 25..29
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue