mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
add fragmets to expansion
This commit is contained in:
parent
9d3c78e2ee
commit
6e5198cd6d
2 changed files with 42 additions and 36 deletions
|
@ -657,7 +657,6 @@ fn test_expr() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn test_expr_order() {
|
||||
let rules = create_rules(
|
||||
r#"
|
||||
|
@ -668,9 +667,9 @@ fn test_expr_order() {
|
|||
}
|
||||
"#,
|
||||
);
|
||||
|
||||
let dump = format!("{:#?}", expand_to_items(&rules, "foo! { 1 + 1 }").syntax());
|
||||
assert_eq_text!(
|
||||
&format!("{:#?}", expand_to_items(&rules, "foo! { 1 + 1 }").syntax()),
|
||||
dump.trim(),
|
||||
r#"MACRO_ITEMS@[0; 15)
|
||||
FN_DEF@[0; 15)
|
||||
FN_KW@[0; 2) "fn"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue