mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Highlight assist tests
This commit is contained in:
parent
1cca6b2a3d
commit
cf0ececb7a
3 changed files with 53 additions and 49 deletions
|
@ -320,7 +320,7 @@ fn highlight_injection(
|
|||
let call_info = call_info_for_token(&sema, expanded)?;
|
||||
let idx = call_info.active_parameter?;
|
||||
let name = call_info.signature.parameter_names.get(idx)?;
|
||||
if name != "ra_fixture" {
|
||||
if !name.starts_with("ra_fixture") {
|
||||
return None;
|
||||
}
|
||||
let value = literal.value()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue