mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Turn unresolved proc macro expansions into missing expressions
This commit is contained in:
parent
c59bd2dc3f
commit
042be329a7
4 changed files with 24 additions and 19 deletions
|
@ -328,9 +328,6 @@ fn macro_rules(p: &mut Parser<'_>, m: Marker) {
|
|||
p.bump_remap(T![macro_rules]);
|
||||
p.expect(T![!]);
|
||||
|
||||
if p.at(IDENT) {
|
||||
name(p);
|
||||
}
|
||||
// Special-case `macro_rules! try`.
|
||||
// This is a hack until we do proper edition support
|
||||
|
||||
|
@ -340,6 +337,8 @@ fn macro_rules(p: &mut Parser<'_>, m: Marker) {
|
|||
let m = p.start();
|
||||
p.bump_remap(IDENT);
|
||||
m.complete(p, NAME);
|
||||
} else {
|
||||
name(p);
|
||||
}
|
||||
|
||||
match p.current() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue