private void ProcessComment()
{
if (analyzer.Check('#'))
{
var start = cursor.Mark();
// Eat '#'
Skip();
// Eat leading whitespace
while (analyzer.IsSpace())
{
Skip();
}
var text = new StringBuilder();
while (!analyzer.IsBreakOrZero())
{
text.Append(ReadCurrentCharacter());
}
if (!SkipComments)
{
var isInline = previous != null
&& previous.End.Line == start.Line
&& !(previous is StreamStart);
tokens.Enqueue(new Comment(text.ToString(), isInline, start, cursor.Mark()));
}
}
}