Fix parse error with multiple consecutive terminators.