src/sys/dotnet/fanx/serial/Tokenizer.cs
/// <summary>
/// Skip a multi line /* comment.  Note unlike C/Java,
/// slash/star comments can be nested.
/// </summary>
Skip a multi line  comment.  Note unlike C/Java,
slash/star comments can be nested.
Skip a multi line comment . Note unlike C / Java slash / star comments can be nested .
private Token skipCommentML()
    {
      consume(); 
      consume(); 
      int depth = 1;
      while (true)
      {
        if (cur == '*' && peek == '/') { consume(); consume(); depth--; if (depth <= 0) break; }
        if (cur == '/' && peek == '*') { consume(); consume(); depth++; continue; }
        if (cur < 0) break;
        consume();
      }
      return null;
    }
private Token skipCommentML ( ) { consume ( ) ; consume ( ) ; int depth = 1 ; while ( true ) { if ( cur == ' ' && peek == ' ' ) { consume ( ) ; consume ( ) ; depth -- ; if ( depth <= 0 ) break ; } if ( cur == ' ' && peek == ' ' ) { consume ( ) ; consume ( ) ; depth ++ ; continue ; } if ( cur < 0 ) break ; consume ( ) ; } return null ; }
Skip a multi line /* comment.
Skip a multi line / * comment .
// first slash // next slash