Schemas: allow CompoundPatterns in AltPatterns

This commit is contained in:
Emery Hemingway 2021-08-28 11:20:24 +02:00
parent d67482fad8
commit 338a468466
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ const parser = peg("Schema", p: ParseState):
AltRef |
AltLiteralPattern
AltNamed <- '@' * >id * S * SimplePattern:
AltNamed <- '@' * >id * S * Pattern:
let n = SchemaNode(kind: snkAlt, altLabel: $1, altBranch: popStack())
pushStack n