Allow macros to expand to or-patterns

This commit is contained in:
Jonas Schievink 2022-01-17 16:52:53 +01:00
parent 9700addc82
commit 8a7f0d920e
4 changed files with 33 additions and 7 deletions

View file

@ -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;