private void ScanDocComment(LineProgress p)
{
p.StartNaturalText();
while (!p.EndOfLine)
{
if (p.Char() == '<')
{
p.EndNaturalText();
p.Advance();
p.State = State.DocCommentXml;
ScanDocCommentXml(p);
p.StartNaturalText();
}
else
{
p.Advance();
}
}
// End of line. Record what we have and revert to default state.
p.EndNaturalText();
p.State = State.Default;
}