mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-14 17:59:56 +00:00
Re-implement rust string highlighting via tool attribute
This commit is contained in:
parent
897f7e579e
commit
bf669dab84
72 changed files with 386 additions and 173 deletions
|
|
@ -220,7 +220,11 @@ mod tests {
|
|||
location: AnnotationLocation::AboveName,
|
||||
};
|
||||
|
||||
fn check_with_config(ra_fixture: &str, expect: Expect, config: &AnnotationConfig) {
|
||||
fn check_with_config(
|
||||
#[rust_analyzer::rust_fixture] ra_fixture: &str,
|
||||
expect: Expect,
|
||||
config: &AnnotationConfig,
|
||||
) {
|
||||
let (analysis, file_id) = fixture::file(ra_fixture);
|
||||
|
||||
let annotations: Vec<Annotation> = analysis
|
||||
|
|
@ -233,7 +237,7 @@ mod tests {
|
|||
expect.assert_debug_eq(&annotations);
|
||||
}
|
||||
|
||||
fn check(ra_fixture: &str, expect: Expect) {
|
||||
fn check(#[rust_analyzer::rust_fixture] ra_fixture: &str, expect: Expect) {
|
||||
check_with_config(ra_fixture, expect, &DEFAULT_CONFIG);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue