private void SearchForComment() { int ch = ReadChar(); while(!EndOfLine(ch)) { if(IsComment(ch)) { if(ignoreComments) { ConsumeToEnd(); } else { ReadComment(); } break; } ch = ReadChar(); } }