You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatevoidSkipSpace(){while(HasValue()){charc= Character();// whitespace; fine to skipif(char.IsWhiteSpace(c)){
TryMoveNext();continue;}// comment?if(HasValue(1)&& Character(0)=='/'){if(Character(1)=='/'){// skip the rest of the linewhile(HasValue()&& Environment.NewLine.Contains(""+ Character())==false){
TryMoveNext();}continue;}elseif(Character(1)=='*'){// skip to comment close
TryMoveNext();
TryMoveNext();while(HasValue(1)){if(Character(0)=='*'&& Character(1)=='/'){
TryMoveNext();
TryMoveNext();
TryMoveNext();break;}else{
TryMoveNext();}}}+else{+ TryMoveNext();+}// let other checks to check failcontinue;}break;}}
An infinite loop occurs when parsing the string "/2/".
Code snippet:
The text was updated successfully, but these errors were encountered: