fix: do not offer completions within macro strings

This commit is contained in:
Vishruth-Thimmaiah 2025-01-01 21:50:06 +05:30
parent 4a03036744
commit cb0221d774
No known key found for this signature in database
GPG key ID: B89775C5BE008866
3 changed files with 72 additions and 1 deletions

View file

@ -713,6 +713,28 @@ struct Foo;
);
}
#[test]
fn issue_17479() {
check(
r#"
//- proc_macros: issue_17479
fn main() {
proc_macros::issue_17479!("te$0");
}
"#,
expect![""],
);
check(
r#"
//- proc_macros: issue_17479
fn main() {
proc_macros::issue_17479!("$0");
}
"#,
expect![""],
)
}
mod cfg {
use super::*;