private void ScanDocCommentXmlString(LineProgress p) { while (!p.EndOfLine) { if (p.Char() == '"') { // Only return the attribute value if it should be spell checked if (this.SpellCheckedAttributes.Contains(p.DetermineAttributeName())) { p.EndNaturalText(); } else { p.IgnoreSpan(); } p.Advance(1); p.State = State.DocCommentXml; return; // Done with string in doc comment XML. } p.Advance(); } // End of line. Never found the '"' to close the string, but whatever. We revert to the // DocCommentXml state and ignore the span. p.State = State.DocCommentXml; p.IgnoreSpan(); }