Schemas: allow CompoundPatterns in AltPatterns
This commit is contained in:
parent
d67482fad8
commit
338a468466
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue