mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 18:26:19 +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
|
|
@ -28,13 +28,18 @@ fn parse_string_spanned(
|
|||
))
|
||||
}
|
||||
|
||||
pub fn assert_expand(macro_name: &str, ra_fixture: &str, expect: Expect, expect_s: Expect) {
|
||||
pub fn assert_expand(
|
||||
macro_name: &str,
|
||||
#[rust_analyzer::rust_fixture] ra_fixture: &str,
|
||||
expect: Expect,
|
||||
expect_s: Expect,
|
||||
) {
|
||||
assert_expand_impl(macro_name, ra_fixture, None, expect, expect_s);
|
||||
}
|
||||
|
||||
pub fn assert_expand_attr(
|
||||
macro_name: &str,
|
||||
ra_fixture: &str,
|
||||
#[rust_analyzer::rust_fixture] ra_fixture: &str,
|
||||
attr_args: &str,
|
||||
expect: Expect,
|
||||
expect_s: Expect,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue