public string SkipComment()
{
int startIndex = m_Index;
while ( OK ) {
if ( m_Index >= m_ContentLength-2 ) {
m_Index = m_ContentLength;
return m_Content.Substring( startIndex, m_Index - startIndex ); // End of text
}
if ( m_Content[m_Index] == '*' && m_Content[m_Index+1] == '/' ) {
m_Index += 2;
return m_Content.Substring( startIndex, m_Index - startIndex );
}
m_Index++;
}
return m_Content.Substring( startIndex, m_Index - startIndex );
}
static void RecordCommentVariable( List< string > _variables, string _token, Parser P ) { string comment = _token + P.SkipComment(); _variables.Add( comment ); }