mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Allow macros to expand to or-patterns
This commit is contained in:
parent
9700addc82
commit
8a7f0d920e
4 changed files with 33 additions and 7 deletions
|
@ -112,7 +112,7 @@ pub(crate) mod entry {
|
|||
|
||||
pub(crate) fn pattern(p: &mut Parser) {
|
||||
let m = p.start();
|
||||
patterns::pattern_single(p);
|
||||
patterns::pattern_top(p);
|
||||
if p.at(EOF) {
|
||||
m.abandon(p);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue