src/main/java/org/mvel2/compiler/AbstractParser.java
protected void captureToEOS() {
    while (cursor != end) {
      switch (expr[cursor]) {
        case '(':
        case '[':
        case '{':
          if ((cursor = balancedCaptureWithLineAccounting(expr, cursor, end, expr[cursor], pCtx)) >= end)
            return;
          break;

        case '"':
        case '\'':
          cursor = captureStringLiteral(expr[cursor], expr, cursor, end);
          break;

        case ',':
        case ';':
        case '}':
          return;
      }
      cursor++;
    }
  }
/**
   * Capture from the current cursor position, to the end of the statement.
   */
Capture from the current cursor position, to the end of the statement.
Capture from the current cursor position to the end of the statement .
protected void captureToEOS() {
    while (cursor != end) {
      switch (expr[cursor]) {
        case '(':
        case '[':
        case '{':
          if ((cursor = balancedCaptureWithLineAccounting(expr, cursor, end, expr[cursor], pCtx)) >= end)
            return;
          break;
        case '"':
        case '\'':
          cursor = captureStringLiteral(expr[cursor], expr, cursor, end);
          break;
        case ',':
        case ';':
        case '}':
          return;
      }
      cursor++;
    }
  }
protected void captureToEOS ( ) { while ( cursor != end ) { switch ( expr [ cursor ] ) { case '(' : case '[' : case '{' : if ( ( cursor = balancedCaptureWithLineAccounting ( expr , cursor , end , expr [ cursor ] , pCtx ) ) >= end ) return ; break ; case '"' : case '\'' : cursor = captureStringLiteral ( expr [ cursor ] , expr , cursor , end ) ; break ; case ',' : case ';' : case '}' : return ; } cursor ++ ; } }
Capture from the current cursor position, to the end of the statement.
Capture from the current cursor position to the end of the statement .