private bool IsDocumentIndicator()
{
if (cursor.LineOffset == 0 && analyzer.IsWhiteBreakOrZero(3))
{
bool isDocumentStart = analyzer.Check('-', 0) && analyzer.Check('-', 1) && analyzer.Check('-', 2);
bool isDocumentEnd = analyzer.Check('.', 0) && analyzer.Check('.', 1) && analyzer.Check('.', 2);
return isDocumentStart || isDocumentEnd;
}
else
{
return false;
}
}