diff --git a/src/composer.jl b/src/composer.jl index 3e9de4b..1525a5c 100644 --- a/src/composer.jl +++ b/src/composer.jl @@ -130,7 +130,9 @@ function _compose_sequence_node(start_event::SequenceStartEvent, composer, ancho composer.anchors[anchor] = node end - while (event = peek(composer.input)) !== nothing + while true + event = peek(composer.input) + event === nothing && break __compose_sequence_node(event, composer, node) || break end