src/main/java/org/mvel2/compiler/AbstractParser.java
protected void skipWhitespace() {
    Skip:
    while (cursor != end) {
      switch (expr[cursor]) {
        case '\n':
          line++;
          lastLineStart = cursor;
        case '\r':
          cursor++;
          continue;
        case '/':
          if (cursor + 1 != end) {
            switch (expr[cursor + 1]) {
              case '/':

                expr[cursor++] = ' ';
                while (cursor != end && expr[cursor] != '\n') {
                  expr[cursor++] = ' ';
                }
                if (cursor != end) {
                  cursor++;
                }

                line++;
                lastLineStart = cursor;

                continue;

              case '*':
                int len = end - 1;
                int st = cursor;
                cursor++;

                while (cursor != len && !(expr[cursor] == '*' && expr[cursor + 1] == '/')) {
                  cursor++;
                }
                if (cursor != len) {
                  cursor += 2;
                }

                for (int i = st; i < cursor; i++) {
                  expr[i] = ' ';
                }

                continue;

              default:
                break Skip;

            }
          }
        default:
          if (!isWhitespace(expr[cursor])) break Skip;

      }
      cursor++;
    }
  }
/**
   * If the cursor is currently pointing to whitespace, move the cursor forward to the first non-whitespace
   * character, but account for carriage returns in the script (updates parser field: line).
   */
If the cursor is currently pointing to whitespace, move the cursor forward to the first non-whitespace
character, but account for carriage returns in the script (updates parser field: line).
If the cursor is currently pointing to whitespace move the cursor forward to the first non - whitespace character but account for carriage returns in the script ( updates parser field : line ) .
protected void skipWhitespace() {
    Skip:
    while (cursor != end) {
      switch (expr[cursor]) {
        case '\n':
          line++;
          lastLineStart = cursor;
        case '\r':
          cursor++;
          continue;
        case '/':
          if (cursor + 1 != end) {
            switch (expr[cursor + 1]) {
              case '/':
                expr[cursor++] = ' ';
                while (cursor != end && expr[cursor] != '\n') {
                  expr[cursor++] = ' ';
                }
                if (cursor != end) {
                  cursor++;
                }
                line++;
                lastLineStart = cursor;
                continue;
              case '*':
                int len = end - 1;
                int st = cursor;
                cursor++;
                while (cursor != len && !(expr[cursor] == '*' && expr[cursor + 1] == '/')) {
                  cursor++;
                }
                if (cursor != len) {
                  cursor += 2;
                }
                for (int i = st; i < cursor; i++) {
                  expr[i] = ' ';
                }
                continue;
              default:
                break Skip;
            }
          }
        default:
          if (!isWhitespace(expr[cursor])) break Skip;
      }
      cursor++;
    }
  }
protected void skipWhitespace ( ) { Skip : while ( cursor != end ) { switch ( expr [ cursor ] ) { case '\n' : line ++ ; lastLineStart = cursor ; case '\r' : cursor ++ ; continue ; case '/' : if ( cursor + 1 != end ) { switch ( expr [ cursor + 1 ] ) { case '/' : expr [ cursor ++ ] = ' ' ; while ( cursor != end && expr [ cursor ] != '\n' ) { expr [ cursor ++ ] = ' ' ; } if ( cursor != end ) { cursor ++ ; } line ++ ; lastLineStart = cursor ; continue ; case '*' : int len = end - 1 ; int st = cursor ; cursor ++ ; while ( cursor != len && ! ( expr [ cursor ] == '*' && expr [ cursor + 1 ] == '/' ) ) { cursor ++ ; } if ( cursor != len ) { cursor += 2 ; } for ( int i = st ; i < cursor ; i ++ ) { expr [ i ] = ' ' ; } continue ; default : break Skip ; } } default : if ( ! isWhitespace ( expr [ cursor ] ) ) break Skip ; } cursor ++ ; } }
If the cursor is currently pointing to whitespace, move the cursor forward to the first non-whitespace
 character, but account for carriage returns in the script (updates parser field: line).
If the cursor is currently pointing to whitespace move the cursor forward to the first non - whitespace character but account for carriage returns in the script ( updates parser field : line ) .