diff --git a/source/ast/expressions/AssertionExpr.cpp b/source/ast/expressions/AssertionExpr.cpp index 857d238d9..c54cb4a10 100644 --- a/source/ast/expressions/AssertionExpr.cpp +++ b/source/ast/expressions/AssertionExpr.cpp @@ -487,6 +487,10 @@ SequenceRepetition::SequenceRepetition(const SequenceRepetitionSyntax& syntax, kind = Consecutive; range.min = 1; return; + case TokenKind::Star: + kind = Consecutive; + range.min = 0; + break; default: kind = Consecutive; break; @@ -664,6 +668,9 @@ AssertionExpr& SequenceConcatExpr::fromSyntax(const DelayedSequenceExprSyntax& s delay = SequenceRange::fromSyntax(*es->range, context, /* allowUnbounded */ true); } + else if (es->op.kind == TokenKind::Star) { + delay.min = 0; + } else if (es->op.kind == TokenKind::Plus) { delay.min = 1; }